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
# Mod properties
mod_version=5.8.6
mod_version=5.8.7
# Fabric Properties
# check these on https://modmuss50.me/fabric.html

View file

@ -533,8 +533,10 @@ public class StorageUnitBaseBlockEntity extends MachineBaseBlockEntity implement
}
@SuppressWarnings("UnstableApiUsage")
private Storage<ItemVariant> getInternalStoreStorage(Direction side) {
Objects.requireNonNull(side);
private Storage<ItemVariant> getInternalStoreStorage(@Nullable Direction direction) {
// 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) {
internalStoreStorage[side.getId()] = new SingleStackStorage() {
@Override