MinecraftModDevelopmentMods / Tesla-Core-Lib

Minecraft library useful in creating power hungry machines
https://minecraft.curseforge.com/projects/tesla-core-lib
MIT License
6 stars 8 forks source link

No energy capability returned on EnumFacing null when machine is paused #41

Open DrManganese opened 6 years ago

DrManganese commented 6 years ago

When looking at an ElectricTileEntity that is paused The One Probe doesn't show an energy bar. This is because TOP gets the tile's capability with a facing of null, which defaults to north in your code when paused, thus not returning the capability.

Would it be possible to change the logic to make sure the capability is always returned on facing = null?

DrManganese commented 6 years ago

Same thing happens when the side that null defaults to has its energy interaction disabled. Items/fluids capabilities show the same behavior.

faceofcat commented 6 years ago

when a TCL machine is paused it doesn't react in any way to any outside stuff...

but I see your point...

one should still be able to query stuff about it... just don't insert/extract stuff...

I'll think about it.