@@ -104,8 +104,8 @@ default void changeSlots(int newSlots) {
104104 getControllerPos ().ifPresent (controllerPos -> {
105105 Level level = getStorageBlockLevel ();
106106 if (!level .isClientSide ()) {
107- WorldHelper .getLoadedBlockEntity (level , controllerPos , ControllerBlockEntityBase .class ).ifPresent (
108- controller -> controller .changeSlots (getStorageBlockPos (), newSlots , getStorageWrapper ().getInventoryForInputOutput ().hasEmptySlots ()));
107+ WorldHelper .getLoadedBlockEntity (level , controllerPos , ControllerBlockEntityBase .class ).ifPresent (controller -> controller
108+ .changeSlots (getControlledStorageBlockPos (), newSlots , getStorageWrapper ().getInventoryForInputOutput ().hasEmptySlots ()));
109109 }
110110 });
111111 }
@@ -114,8 +114,8 @@ default void updateEmptySlots() {
114114 getControllerPos ().ifPresent (controllerPos -> {
115115 Level level = getStorageBlockLevel ();
116116 if (!level .isClientSide ()) {
117- WorldHelper .getLoadedBlockEntity (level , controllerPos , ControllerBlockEntityBase .class ).ifPresent (
118- controller -> controller .updateEmptySlots (getStorageBlockPos (), getStorageWrapper ().getInventoryForInputOutput ().hasEmptySlots ()));
117+ WorldHelper .getLoadedBlockEntity (level , controllerPos , ControllerBlockEntityBase .class ).ifPresent (controller -> controller
118+ .updateEmptySlots (getControlledStorageBlockPos (), getStorageWrapper ().getInventoryForInputOutput ().hasEmptySlots ()));
119119 }
120120 });
121121 }
0 commit comments