mirror of
https://github.com/GTNewHorizons/Opis.git
synced 2026-11-17 11:05:05 +00:00
Solved crash on logic derp for the chunk selection on the entity overlay.
This commit is contained in:
1 parent
6b4031ff91
commit
efdebc6fde
1 file changed
+3
-8
@@ -129,16 +129,11 @@ public class OverlayEntityPerChunk implements IMwDataProvider {
|
||||
if (prevSelected == null && this.selectedChunk != null)
|
||||
PacketDispatcher.sendPacketToServer(Packet_ReqData.create(this.selectedChunk, "list:chunk:entities"));
|
||||
|
||||
else if (prevSelected != null && this.selectedChunk == null)
|
||||
PacketDispatcher.sendPacketToServer(Packet_ReqData.create("overlay:chunk:entities"));
|
||||
|
||||
// TODO : Logic derp below
|
||||
|
||||
else if (!this.selectedChunk.equals(prevSelected) && this.selectedChunk != null)
|
||||
else if (this.selectedChunk != null && !this.selectedChunk.equals(prevSelected))
|
||||
PacketDispatcher.sendPacketToServer(Packet_ReqData.create(this.selectedChunk, "list:chunk:entities"));
|
||||
|
||||
else if (!this.selectedChunk.equals(prevSelected) && this.selectedChunk == null)
|
||||
PacketDispatcher.sendPacketToServer(Packet_ReqData.create("overlay:chunk:entities"));
|
||||
else if (this.selectedChunk == null)
|
||||
PacketDispatcher.sendPacketToServer(Packet_ReqData.create("overlay:chunk:entities"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user