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
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue