mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-16 00:23:41 +01:00
Superglue no longer gums up spawn packets
This commit is contained in:
parent
b5f9cbc4b3
commit
bac4be1728
1 changed files with 7 additions and 8 deletions
|
@ -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 a new issue