From 537509a4e42c1309db64c6318242d367de8b2b44 Mon Sep 17 00:00:00 2001 From: zOnlyKroks Date: Tue, 17 Jan 2023 16:34:04 +0100 Subject: [PATCH] Implement RFallingBlockEntity --- SpigotCore_Main/src/de/steamwar/entity/REntity.java | 1 - .../src/de/steamwar/entity/RFallingBlockEntity.java | 13 +++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 SpigotCore_Main/src/de/steamwar/entity/RFallingBlockEntity.java diff --git a/SpigotCore_Main/src/de/steamwar/entity/REntity.java b/SpigotCore_Main/src/de/steamwar/entity/REntity.java index c850d51..7c0fa2e 100644 --- a/SpigotCore_Main/src/de/steamwar/entity/REntity.java +++ b/SpigotCore_Main/src/de/steamwar/entity/REntity.java @@ -396,7 +396,6 @@ public class REntity { break; } - Reflection.FieldAccessor additionalData = Reflection.getField(spawnPacket, int.class, index); BountifulWrapper.PositionSetter position = BountifulWrapper.impl.getPositionSetter(spawnPacket, posOffset); diff --git a/SpigotCore_Main/src/de/steamwar/entity/RFallingBlockEntity.java b/SpigotCore_Main/src/de/steamwar/entity/RFallingBlockEntity.java new file mode 100644 index 0000000..0512206 --- /dev/null +++ b/SpigotCore_Main/src/de/steamwar/entity/RFallingBlockEntity.java @@ -0,0 +1,13 @@ +package de.steamwar.entity; + +import de.steamwar.techhider.BlockIds; +import org.bukkit.Location; +import org.bukkit.Material; +import org.bukkit.entity.EntityType; + +public class RFallingBlockEntity extends REntity{ + + public RFallingBlockEntity(REntityServer server, EntityType entityType, Location location, Material material) { + super(server, entityType, location, BlockIds.impl.materialToId(material)); + } +}