Cleanup + remove some TODO's that dont apply anymore
This commit is contained in:
parent
6174506d6c
commit
6114f45d9b
10 changed files with 2 additions and 163 deletions
|
@ -51,7 +51,6 @@ public class ServerboundPackets {
|
|||
public static final Identifier AUTO_CRAFTING_LOCK = new Identifier("techreborn", "auto_crafting_lock");
|
||||
public static final Identifier ROLLING_MACHINE_LOCK = new Identifier("techreborn", "rolling_machine_lock");
|
||||
public static final Identifier FUSION_CONTROL_SIZE = new Identifier("techreborn", "fusion_control_size");
|
||||
public static final Identifier IDSU = new Identifier("techreborn", "idsu");
|
||||
public static final Identifier REFUND = new Identifier("techreborn", "refund");
|
||||
|
||||
public static void init() {
|
||||
|
@ -93,18 +92,6 @@ public class ServerboundPackets {
|
|||
});
|
||||
});
|
||||
|
||||
registerPacketHandler(IDSU, (extendedPacketBuffer, context) -> {
|
||||
BlockPos pos = extendedPacketBuffer.readBlockPos();
|
||||
int buttonID = extendedPacketBuffer.readInt();
|
||||
|
||||
context.getTaskQueue().execute(() -> {
|
||||
//TODO was commented out when I ported it, so ill leave it here, needs looking into tho
|
||||
// if (!pos.getWorld().isRemote) {
|
||||
// pos.handleGuiInputFromClient(buttonID);
|
||||
// }
|
||||
});
|
||||
});
|
||||
|
||||
registerPacketHandler(ROLLING_MACHINE_LOCK, (extendedPacketBuffer, context) -> {
|
||||
BlockPos machinePos = extendedPacketBuffer.readBlockPos();
|
||||
boolean locked = extendedPacketBuffer.readBoolean();
|
||||
|
@ -164,12 +151,6 @@ public class ServerboundPackets {
|
|||
});
|
||||
}
|
||||
|
||||
public static Packet createPacketIdsu(int buttonID, InterdimensionalSUBlockEntity blockEntity) {
|
||||
return NetworkManager.createServerBoundPacket(IDSU, extendedPacketBuffer -> {
|
||||
extendedPacketBuffer.writeBlockPos(blockEntity.getPos());
|
||||
extendedPacketBuffer.writeInt(buttonID);
|
||||
});
|
||||
}
|
||||
|
||||
public static Packet createPacketRollingMachineLock(RollingMachineBlockEntity machine, boolean locked) {
|
||||
return NetworkManager.createServerBoundPacket(ROLLING_MACHINE_LOCK, extendedPacketBuffer -> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue