forked from ChomeNS/chipmunkmod
fix core
This commit is contained in:
parent
f75dbac63a
commit
4e07c1083a
1 changed files with 68 additions and 20 deletions
|
@ -140,16 +140,40 @@ public class CommandCore {
|
||||||
final ClientConnection connection = client.getNetworkHandler().getConnection();
|
final ClientConnection connection = client.getNetworkHandler().getConnection();
|
||||||
final BlockPos currentBlock = currentBlockAbsolute();
|
final BlockPos currentBlock = currentBlockAbsolute();
|
||||||
|
|
||||||
connection.send(
|
if (KaboomCheck.INSTANCE.isKaboom) {
|
||||||
new UpdateCommandBlockC2SPacket(
|
connection.send(
|
||||||
currentBlock,
|
new UpdateCommandBlockC2SPacket(
|
||||||
command,
|
currentBlock,
|
||||||
KaboomCheck.INSTANCE.isKaboom ? CommandBlockBlockEntity.Type.AUTO : CommandBlockBlockEntity.Type.REDSTONE,
|
command,
|
||||||
false,
|
CommandBlockBlockEntity.Type.AUTO,
|
||||||
false,
|
false,
|
||||||
true
|
false,
|
||||||
)
|
true
|
||||||
);
|
)
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
connection.send(
|
||||||
|
new UpdateCommandBlockC2SPacket(
|
||||||
|
currentBlock,
|
||||||
|
"",
|
||||||
|
CommandBlockBlockEntity.Type.REDSTONE,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
false
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
connection.send(
|
||||||
|
new UpdateCommandBlockC2SPacket(
|
||||||
|
currentBlock,
|
||||||
|
command,
|
||||||
|
CommandBlockBlockEntity.Type.REDSTONE,
|
||||||
|
false,
|
||||||
|
false,
|
||||||
|
true
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
incrementCurrentBlock();
|
incrementCurrentBlock();
|
||||||
}
|
}
|
||||||
|
@ -158,16 +182,40 @@ public class CommandCore {
|
||||||
final ClientConnection connection = client.getNetworkHandler().getConnection();
|
final ClientConnection connection = client.getNetworkHandler().getConnection();
|
||||||
final BlockPos currentBlock = currentBlockAbsolute();
|
final BlockPos currentBlock = currentBlockAbsolute();
|
||||||
|
|
||||||
connection.send(
|
if (KaboomCheck.INSTANCE.isKaboom) {
|
||||||
new UpdateCommandBlockC2SPacket(
|
connection.send(
|
||||||
currentBlock,
|
new UpdateCommandBlockC2SPacket(
|
||||||
command,
|
currentBlock,
|
||||||
KaboomCheck.INSTANCE.isKaboom ? CommandBlockBlockEntity.Type.AUTO : CommandBlockBlockEntity.Type.REDSTONE,
|
command,
|
||||||
true,
|
CommandBlockBlockEntity.Type.AUTO,
|
||||||
false,
|
true,
|
||||||
true
|
false,
|
||||||
)
|
true
|
||||||
);
|
)
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
connection.send(
|
||||||
|
new UpdateCommandBlockC2SPacket(
|
||||||
|
currentBlock,
|
||||||
|
"",
|
||||||
|
CommandBlockBlockEntity.Type.REDSTONE,
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
false
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
connection.send(
|
||||||
|
new UpdateCommandBlockC2SPacket(
|
||||||
|
currentBlock,
|
||||||
|
command,
|
||||||
|
CommandBlockBlockEntity.Type.REDSTONE,
|
||||||
|
true,
|
||||||
|
false,
|
||||||
|
true
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
incrementCurrentBlock();
|
incrementCurrentBlock();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue