Closed kreezxil closed 7 years ago
Report with WOOT. That's a bug where they don't correctly handle 'null' direction for energy in their energy capability handler (you can tell them that). i.e. basically hasCapability with null facing returns true but getCapability with null facing returns null. That's a bug. Best is that they support null facing correctly
McJty,, I'm having a bit of trouble understanding the issue here and I just want to make sure that I'm handling this correctly. I also cannot replicate the problem so I'm down to code inspection.
From the below in my TileEntityMobFactory class
getCapability - for ENERGY always returning non-null regardless of facing
protected EnergyManager energyManager = new EnergyManager(EnergyManager.RF_STORED, EnergyManager.MAX_RF_TICK, this); @Override public boolean hasCapability(Capability<?> capability, EnumFacing facing) { return capability == CapabilityEnergy.ENERGY; }
@Override
public
Sorry, didn't yet have time to check this out. Will try to check tomorrow
McJty please ignore the information I provided. Kreezxil has now helped me reproduce the issue and it is with a different TE (in my mod) than originally reported. That other TE does look like it can return true for hasCapability but null for getCapability.
http://pastebin.com/saDxrTkP