fix datamap saving
This commit is contained in:
parent
05e00d389b
commit
c126bdd8b0
3 changed files with 86 additions and 87 deletions
|
@ -1578,13 +1578,13 @@ public class Player extends User implements Executor, IPlayer
|
|||
}
|
||||
});
|
||||
this.connection.disableAutoRead();
|
||||
Futures.getUnchecked(this.server.schedule(new Runnable()
|
||||
this.server.schedule(new Runnable()
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
Player.this.connection.checkDisconnected();
|
||||
}
|
||||
}));
|
||||
});
|
||||
}
|
||||
|
||||
public void onDisconnect(String reason)
|
||||
|
|
|
@ -74,7 +74,8 @@ public class Region {
|
|||
missing.add(id);
|
||||
}
|
||||
}
|
||||
for(Entry<Character, String> entry : states.entrySet()) {
|
||||
for(Iterator<Entry<Character, String>> iter = states.entrySet().iterator(); iter.hasNext();) {
|
||||
Entry<Character, String> entry = iter.next();
|
||||
char bid = entry.getKey();
|
||||
String oid = entry.getValue();
|
||||
State state = BlockRegistry.byName(oid, null);
|
||||
|
@ -83,7 +84,9 @@ public class Region {
|
|||
mapping.put(bid, id);
|
||||
highest = bid > highest ? bid : highest;
|
||||
missing.remove(id);
|
||||
Log.IO.debug((id.equals(oid) ? "Mehrfache" : "Geänderte") + " Block-ID %d = %s -> %s", (int)bid, oid, id);
|
||||
if(id.equals(oid))
|
||||
iter.remove();
|
||||
Log.IO.debug((id.equals(oid) ? "Mehrfache" : "Geänderte") + " Block-ID %d = %s" + (id.equals(oid) ? "" : " -> %s"), (int)bid, oid, id);
|
||||
}
|
||||
else {
|
||||
Log.IO.debug("Entfernte Block-ID %d = %s", (int)bid, oid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue