mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-14 06:24:12 +01:00
Superglue no longer gums up spawn packets
This commit is contained in:
parent
b5f9cbc4b3
commit
bac4be1728
@ -712,16 +712,15 @@ public abstract class Contraption {
|
||||
}
|
||||
|
||||
ListNBT superglueNBT = new ListNBT();
|
||||
for (Pair<BlockPos, Direction> glueEntry : superglue) {
|
||||
CompoundNBT c = new CompoundNBT();
|
||||
c.put("Pos", NBTUtil.writeBlockPos(glueEntry.getKey()));
|
||||
c.putByte("Direction", (byte) glueEntry.getValue()
|
||||
.getIndex());
|
||||
superglueNBT.add(c);
|
||||
}
|
||||
|
||||
ListNBT storageNBT = new ListNBT();
|
||||
if (!spawnPacket) {
|
||||
for (Pair<BlockPos, Direction> glueEntry : superglue) {
|
||||
CompoundNBT c = new CompoundNBT();
|
||||
c.put("Pos", NBTUtil.writeBlockPos(glueEntry.getKey()));
|
||||
c.putByte("Direction", (byte) glueEntry.getValue().getIndex());
|
||||
superglueNBT.add(c);
|
||||
}
|
||||
|
||||
for (BlockPos pos : storage.keySet()) {
|
||||
CompoundNBT c = new CompoundNBT();
|
||||
MountedStorage mountedStorage = storage.get(pos);
|
||||
|
Loading…
Reference in New Issue
Block a user