mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-20 12:19:50 +00:00
Fixed guava derp in the other msg type.
This commit is contained in:
1 parent
85f274e387
commit
245faeac55
1 file changed
+7
-1
@@ -74,9 +74,15 @@ public enum StringCache implements IMessageHandler {
|
||||
}
|
||||
case STATUS_STRINGUPD_FULL:{
|
||||
modOpis.log.info(String.format("Received full String Cache update containing %d entries", rawdata.array.size()));
|
||||
|
||||
for (ISerializable idata : rawdata.array){
|
||||
DataStringUpdate data = (DataStringUpdate)idata;
|
||||
this.cache.put(data.index, data.str);
|
||||
try{
|
||||
this.cache.put(data.index, data.str);
|
||||
} catch (IllegalArgumentException e){
|
||||
this.cache.remove(data.index);
|
||||
this.cache.put(data.index, data.str);
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user