mirror of
https://github.com/ViaVersion/ViaBackwards.git
synced 2025-02-17 02:01:59 +01:00
parent
46c7cab3a4
commit
0c040db6f0
@ -68,6 +68,8 @@ public class PistonHandler implements BackwardsBlockEntityProvider.BackwardsBloc
|
|||||||
@Override
|
@Override
|
||||||
public CompoundTag transform(UserConnection user, int blockId, CompoundTag tag) {
|
public CompoundTag transform(UserConnection user, int blockId, CompoundTag tag) {
|
||||||
CompoundTag blockState = tag.get("blockState");
|
CompoundTag blockState = tag.get("blockState");
|
||||||
|
if (blockState == null) return tag;
|
||||||
|
|
||||||
String dataFromTag = getDataFromTag(blockState);
|
String dataFromTag = getDataFromTag(blockState);
|
||||||
if (dataFromTag == null) return tag;
|
if (dataFromTag == null) return tag;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user