mappings
This commit is contained in:
1 parent
fd3c8290cf
commit
4dd3cc7fd6
6 files changed
+10
-10
No files matched your search
@@ -857,7 +857,7 @@ public class WorldAccess {
|
||||
|
||||
ItemStack tool = new ItemStack(item, 1);
|
||||
if (tag != null)
|
||||
tool.setTag(tag);
|
||||
tool.setNbt(tag);
|
||||
if (playerBreak && state.getHardness(world, where) < 0.0) return Value.FALSE;
|
||||
boolean removed = world.removeBlock(where, false);
|
||||
if (!removed) return Value.FALSE;
|
||||
@@ -902,7 +902,7 @@ public class WorldAccess {
|
||||
return Value.TRUE;
|
||||
if (toolBroke)
|
||||
return Value.NULL;
|
||||
NbtElement outtag = tool.getTag();
|
||||
NbtElement outtag = tool.getNbt();
|
||||
if (outtag == null)
|
||||
return Value.TRUE;
|
||||
return new NBTSerializableValue(() -> outtag);
|
||||
|
||||
@@ -96,10 +96,10 @@ public class NBTSerializableValue extends Value implements ContainerValueInterfa
|
||||
|
||||
public static Value fromStack(ItemStack stack)
|
||||
{
|
||||
if (stack.hasTag())
|
||||
if (stack.hasNbt())
|
||||
{
|
||||
NBTSerializableValue value = new NBTSerializableValue();
|
||||
value.nbtSupplier = stack::getTag;
|
||||
value.nbtSupplier = stack::getNbt;
|
||||
return value;
|
||||
}
|
||||
return Value.NULL;
|
||||
|
||||
Reference in new issue
Block a user