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() {
51
51
super .clearRemoved ();
52
52
}
53
53
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
-
85
54
@ Override
86
55
public void load (BlockState state , CompoundNBT nbt ) {
87
56
super .load (state , nbt );
@@ -248,9 +217,6 @@ public void doPostPlaced() {
248
217
CompactMachineData extern = CompactMachineData .get (serv );
249
218
extern .setMachineLocation (this .machineId , dp );
250
219
251
- if (ServerConfig .MACHINE_CHUNKLOADING .get ())
252
- CompactMachines .CHUNKLOAD_MANAGER .onMachineChunkLoad (machineId );
253
-
254
220
this .setChanged ();
255
221
}
256
222
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ public class ServerConfig {
12
12
public static ForgeConfigSpec CONFIG ;
13
13
14
14
public static ForgeConfigSpec .EnumValue <EnumMachinePlayersBreakHandling > MACHINE_PLAYER_BREAK_HANDLING ;
15
- public static ForgeConfigSpec .BooleanValue MACHINE_CHUNKLOADING ;
16
15
17
16
public static ForgeConfigSpec .IntValue MACHINE_FLOOR_Y ;
18
17
@@ -41,10 +40,6 @@ private static void generateConfig() {
41
40
EnumMachinePlayersBreakHandling .UNBREAKABLE ,
42
41
EnumGetMethod .NAME_IGNORECASE );
43
42
44
- MACHINE_CHUNKLOADING = builder
45
- .comment ("Allow machines to chunkload their insides when the machines are loaded." )
46
- .define ("chunkloading" , true );
47
-
48
43
MACHINE_FLOOR_Y = builder
49
44
.comment ("The Y-level to spawn machine floors at." )
50
45
.defineInRange ("floor" , 40 , 10 , 200 );
You can’t perform that action at this time.
0 commit comments