1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-11-06 08:22:59 +00:00

Expose NBT hashes of items to users

This just uses the same approach as Plethora, so we should have aparity
for .list() now.
This commit is contained in:
SquidDev
2020-08-22 16:09:35 +01:00
parent 29fb0baa09
commit 9acfc0316f
3 changed files with 74 additions and 2 deletions

View File

@@ -605,7 +605,7 @@ public class TurtleAPI implements ILuaAPI
Map<String, Object> table = detailed
? ItemData.fill( new HashMap<>(), stack )
: ItemData.fillBasic( new HashMap<>(), stack );
: ItemData.fillBasicSafe( new HashMap<>(), stack );
TurtleActionEvent event = new TurtleInspectItemEvent( turtle, stack, table, detailed );
if( MinecraftForge.EVENT_BUS.post( event ) ) return new Object[] { false, event.getFailureMessage() };