maruohon / justenoughdimensions

A simple Minecraft mod to register custom dimensions to the game
GNU General Public License v3.0
12 stars 7 forks source link

TrashSlot Compatibility #65

Open Petschko opened 3 years ago

Petschko commented 3 years ago

This is a PR, which should add compatibility to the Mod "Trash-Slot".

Why do that mod need it? Well this Trash-Slot works like the Trash-Slot in Terraria, where the last Item could always be restored (basically holds the item before you add an other into the trash)

Since its a container slot, it makes sense to swap that too. Sadly the Mod has no real API/Interface to inject (most are just client-side only), so I had to add the code to the PlayerInventoryHandler, which checks if the mod is loaded