File tree Expand file tree Collapse file tree 2 files changed +0
-39
lines changed
src/main/java/dev/compactmods/machines Expand file tree Collapse file tree 2 files changed +0
-39
lines changed Original file line number Diff line number Diff line change @@ -51,37 +51,6 @@ public void clearRemoved() {
5151 super .clearRemoved ();
5252 }
5353
54- @ Override
55- public void onLoad () {
56- super .onLoad ();
57-
58- if (level == null || level .isClientSide )
59- return ;
60-
61- if (ServerConfig .MACHINE_CHUNKLOADING .get ()) {
62- final MinecraftServer server = ((ServerWorld ) level ).getServer ();
63- server .submitAsync (new TickDelayedTask (server .getTickCount () + 5 , () -> {
64- CompactMachines .CHUNKLOAD_MANAGER .onMachineChunkLoad (machineId );
65- }));
66- }
67- }
68-
69- @ Override
70- public void onChunkUnloaded () {
71- super .onChunkUnloaded ();
72-
73- if (ServerConfig .MACHINE_CHUNKLOADING .get ())
74- CompactMachines .CHUNKLOAD_MANAGER .onMachineChunkUnload (machineId );
75- }
76-
77- @ Override
78- public void setRemoved () {
79- super .setRemoved ();
80-
81- if (ServerConfig .MACHINE_CHUNKLOADING .get ())
82- CompactMachines .CHUNKLOAD_MANAGER .onMachineChunkUnload (machineId );
83- }
84-
8554 @ Override
8655 public void load (BlockState state , CompoundNBT nbt ) {
8756 super .load (state , nbt );
@@ -248,9 +217,6 @@ public void doPostPlaced() {
248217 CompactMachineData extern = CompactMachineData .get (serv );
249218 extern .setMachineLocation (this .machineId , dp );
250219
251- if (ServerConfig .MACHINE_CHUNKLOADING .get ())
252- CompactMachines .CHUNKLOAD_MANAGER .onMachineChunkLoad (machineId );
253-
254220 this .setChanged ();
255221 }
256222
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ public class ServerConfig {
1212 public static ForgeConfigSpec CONFIG ;
1313
1414 public static ForgeConfigSpec .EnumValue <EnumMachinePlayersBreakHandling > MACHINE_PLAYER_BREAK_HANDLING ;
15- public static ForgeConfigSpec .BooleanValue MACHINE_CHUNKLOADING ;
1615
1716 public static ForgeConfigSpec .IntValue MACHINE_FLOOR_Y ;
1817
@@ -41,10 +40,6 @@ private static void generateConfig() {
4140 EnumMachinePlayersBreakHandling .UNBREAKABLE ,
4241 EnumGetMethod .NAME_IGNORECASE );
4342
44- MACHINE_CHUNKLOADING = builder
45- .comment ("Allow machines to chunkload their insides when the machines are loaded." )
46- .define ("chunkloading" , true );
47-
4843 MACHINE_FLOOR_Y = builder
4944 .comment ("The Y-level to spawn machine floors at." )
5045 .defineInRange ("floor" , 40 , 10 , 200 );
You can’t perform that action at this time.
0 commit comments