mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Fixed nullpointer caused by getting capabilities with null facing
This commit is contained in:
parent
58b959c593
commit
1575a8aa62
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ public abstract class TileEntityInventoryBase extends TileEntityBase implements
|
|||
@Override
|
||||
public <T> T getCapability(Capability<T> capability, EnumFacing facing){
|
||||
if(this.hasInvWrapperCapabilities() && capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY){
|
||||
return (T)this.invWrappers[facing.ordinal()];
|
||||
return (T)this.invWrappers[facing == null ? 0 : facing.ordinal()];
|
||||
}
|
||||
else{
|
||||
return super.getCapability(capability, facing);
|
||||
|
|
Loading…
Reference in a new issue