Changes
From Forge Community Wiki
16 bytes added
, 19:49, 4 March 2023
mLine 160: |
Line 160: |
| public <T> LazyOptional<T> getCapability(Capability<T> capability, @Nullable Direction direction) { | | public <T> LazyOptional<T> getCapability(Capability<T> capability, @Nullable Direction direction) { |
| if (capability == ForgeCapabilities.ITEM_HANDLER | | if (capability == ForgeCapabilities.ITEM_HANDLER |
− | && (direction == null || direction == Direction.UP || direction == Direction.DOWN)) { | + | && (direction == null {{!}}{{!}} direction == Direction.UP {{!}}{{!}} direction == Direction.DOWN)) { |
| return this.inventoryOptional.cast(); | | return this.inventoryOptional.cast(); |
| } | | } |