Crossroads-Development / Essentials

Essentials is a mod for Minecraft. It adds a few simple utility-style blocks and items, mostly meant to enhance vanilla-style automation.
MIT License
11 stars 10 forks source link

Missing Null check on sided inventory caps #76

Closed baileyholl closed 2 years ago

baileyholl commented 2 years ago

Hello, Several of the tiles are not accounting for null directions in caps. This parameter is marked nullable in CapabilityProvider. Because of this, mods that do not care about the direction of the inventory will cause the block to throw an exception.

One example is here: https://github.com/Crossroads-Development/Essentials/blob/12c9a1957bd377c717ad8e20a36ceb9ece1f59f5/src/main/java/com/Da_Technomancer/essentials/tileentities/HopperFilterTileEntity.java#L151