Quick fix for https://github.com/TechReborn/TechReborn/issues/3175
This commit is contained in:
parent
0b4b28dd62
commit
9523da1744
2 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue