mirror of
https://github.com/Eaglercraft-Archive/Eaglercraftx-1.8.8-src.git
synced 2025-06-27 18:38:14 -05:00
Update #25 - Fixed world difficulty glitch
This commit is contained in:
@ -257,7 +257,11 @@ public class EaglerIntegratedServerWorker {
|
||||
case IPCPacket0ASetWorldDifficulty.ID: {
|
||||
IPCPacket0ASetWorldDifficulty pkt = (IPCPacket0ASetWorldDifficulty)ipc;
|
||||
if(!isServerStopped()) {
|
||||
currentProcess.setDifficultyForAllWorlds(EnumDifficulty.getDifficultyEnum(pkt.difficulty));
|
||||
if(pkt.difficulty == (byte)-1) {
|
||||
currentProcess.setDifficultyLockedForAllWorlds(true);
|
||||
}else {
|
||||
currentProcess.setDifficultyForAllWorlds(EnumDifficulty.getDifficultyEnum(pkt.difficulty));
|
||||
}
|
||||
}else {
|
||||
logger.warn("Client tried to set difficulty while server was stopped");
|
||||
}
|
||||
|
Reference in New Issue
Block a user