Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log spam with EnderIO non-fluid conduits passing next to GenericTank implementations #53

Open
smbarbour opened this issue Aug 17, 2015 · 6 comments

Comments

@smbarbour
Copy link

[16:38:49] [Server thread/DEBUG] [OpenMods/]: openmods.liquids.GenericTank.fillFromSides(GenericTank.java:154): Tank class crazypants.enderio.conduit.TileConduitBundle @ (-797,63,795) returned null tank info. Nasty.

Block using GenericTank: OpenBlocks sprinkler.

Screenshot of how it is laid out in world:
2015-08-17_23-43-10

@nevercast
Copy link
Member

Just to confirm, you have an item and energy conduit but no liquid conduit yes?

@allaryin
Copy link

There is no liquid conduit in that block, no. The sprinkler in question is pulling its water from a pressure pipes water source below it.

@nevercast
Copy link
Member

Can you confirm that the block you are looking at in that screenshot is in fact (-797,63,795)
Debug mode (F3) will tell you the location of the block you are looking at.

@nevercast
Copy link
Member

From what I can tell this is caused by
https://github.com/SleepyTrousers/EnderIO/blob/master/src/main/java/crazypants/enderio/conduit/TileConduitBundle.java#L773

As well as a lack of Null check at our end.
I do believe the returned array should be empty, not null, when a tank is not available.

A null check at our end will fix this though.
Looking at the API here:
https://github.com/MinecraftForge/MinecraftForge/blob/master/src/main/java/net/minecraftforge/fluids/IFluidHandler.java#L73-L81

Does not say if null is valid or invalid for return. I can only assume it's invalid.

@nevercast
Copy link
Member

Oops, we do the null check, that's exactly what we are seeing here.
https://github.com/OpenMods/OpenModsLib/blob/master/src/main/java/openmods/liquids/GenericTank.java#L153-L157

Our end is working as expected.

Raise an issue with the EnderIO team regarding returning an empty TankInfo array instead of null.
If they insist that null is valid, I will just silence the console output at our end. Nothing is overly broken in OpenMods by this issue, and the library is only warning you that EnderIO might be misbehaving.

@nevercast
Copy link
Member

I've popped open an issue with MinecraftForge.
MinecraftForge/MinecraftForge#2085

When they clarify the API's intended use, OpenMods will follow that. EnderIO will have to follow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants