From 70e8fc7ff1b94453d6200536c59a0086c63fbdbf Mon Sep 17 00:00:00 2001 From: zOnlyKroks Date: Tue, 17 Jan 2023 16:40:34 +0100 Subject: [PATCH] Implement RFallingBlockEntity --- .../src/de/steamwar/entity/RFallingBlockEntity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/entity/RFallingBlockEntity.java b/SpigotCore_Main/src/de/steamwar/entity/RFallingBlockEntity.java index 0512206..b1e6fc5 100644 --- a/SpigotCore_Main/src/de/steamwar/entity/RFallingBlockEntity.java +++ b/SpigotCore_Main/src/de/steamwar/entity/RFallingBlockEntity.java @@ -1,5 +1,6 @@ package de.steamwar.entity; +import de.steamwar.core.Core; import de.steamwar.techhider.BlockIds; import org.bukkit.Location; import org.bukkit.Material; @@ -8,6 +9,6 @@ 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)); + super(server, entityType, location, BlockIds.impl.materialToId(material) >> (Core.getVersion() <= 12 ? 4 : 0)); } }