mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
duh
This commit is contained in:
parent
8696c4e758
commit
245f357dfe
1 changed files with 4 additions and 4 deletions
|
@ -121,14 +121,14 @@ public class TileEntityItemViewerHopping extends TileEntityItemViewer{
|
||||||
TileEntity to = this.world.getTileEntity(toPos);
|
TileEntity to = this.world.getTileEntity(toPos);
|
||||||
if(to != null && !(to instanceof TileEntityItemViewer)){
|
if(to != null && !(to instanceof TileEntityItemViewer)){
|
||||||
IItemHandler normal = null;
|
IItemHandler normal = null;
|
||||||
if(from.hasCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, facing.getOpposite())){
|
if(to.hasCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, facing.getOpposite())){
|
||||||
normal = from.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, facing.getOpposite());
|
normal = to.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, facing.getOpposite());
|
||||||
}
|
}
|
||||||
|
|
||||||
Object slotless = null;
|
Object slotless = null;
|
||||||
if(ActuallyAdditions.commonCapsLoaded){
|
if(ActuallyAdditions.commonCapsLoaded){
|
||||||
if(from.hasCapability(SlotlessItemHandlerConfig.CAPABILITY, facing.getOpposite())){
|
if(to.hasCapability(SlotlessItemHandlerConfig.CAPABILITY, facing.getOpposite())){
|
||||||
slotless = from.getCapability(SlotlessItemHandlerConfig.CAPABILITY, facing.getOpposite());
|
slotless = to.getCapability(SlotlessItemHandlerConfig.CAPABILITY, facing.getOpposite());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue