This commit is contained in:
modmuss50 2023-08-17 09:08:29 +01:00
parent 0b4b28dd62
commit 9523da1744
2 changed files with 5 additions and 3 deletions

View file

@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx2G
fabric.loom.multiProjectOptimisation=true fabric.loom.multiProjectOptimisation=true
# Mod properties # Mod properties
mod_version=5.8.6 mod_version=5.8.7
# Fabric Properties # Fabric Properties
# check these on https://modmuss50.me/fabric.html # check these on https://modmuss50.me/fabric.html

View file

@ -533,8 +533,10 @@ public class StorageUnitBaseBlockEntity extends MachineBaseBlockEntity implement
} }
@SuppressWarnings("UnstableApiUsage") @SuppressWarnings("UnstableApiUsage")
private Storage<ItemVariant> getInternalStoreStorage(Direction side) { private Storage<ItemVariant> getInternalStoreStorage(@Nullable Direction direction) {
Objects.requireNonNull(side); // Quick fix to handle null sides. https://github.com/TechReborn/TechReborn/issues/3175
final Direction side = direction != null ? direction : Direction.DOWN;
if (internalStoreStorage[side.getId()] == null) { if (internalStoreStorage[side.getId()] == null) {
internalStoreStorage[side.getId()] = new SingleStackStorage() { internalStoreStorage[side.getId()] = new SingleStackStorage() {
@Override @Override