mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2024-11-02 09:09:55 +01:00
Check if block entity id tag is present
This commit is contained in:
parent
761249d39f
commit
8a8c1a33a6
@ -264,7 +264,10 @@ public class BlockItemPackets1_16 extends nl.matsv.viabackwards.api.rewriters.It
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void handleBlockEntity(CompoundTag tag) {
|
private void handleBlockEntity(CompoundTag tag) {
|
||||||
String id = ((StringTag) tag.get("id")).getValue();
|
StringTag idTag = tag.get("id");
|
||||||
|
if (idTag == null) return;
|
||||||
|
|
||||||
|
String id = idTag.getValue();
|
||||||
if (id.equals("minecraft:conduit")) {
|
if (id.equals("minecraft:conduit")) {
|
||||||
Tag targetUuidTag = tag.remove("Target");
|
Tag targetUuidTag = tag.remove("Target");
|
||||||
if (!(targetUuidTag instanceof IntArrayTag)) return;
|
if (!(targetUuidTag instanceof IntArrayTag)) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user