From 775435783a72e061e057b825f6dfe7a34a2bba61 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 10 Feb 2022 17:52:59 +0100 Subject: [PATCH] Fix DetonatorEntity18 Signed-off-by: yoyosource --- .../src/de/steamwar/bausystem/entities/DetonatorEntity18.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BauSystem_18/src/de/steamwar/bausystem/entities/DetonatorEntity18.java b/BauSystem_18/src/de/steamwar/bausystem/entities/DetonatorEntity18.java index bf1f670b..50078e9a 100644 --- a/BauSystem_18/src/de/steamwar/bausystem/entities/DetonatorEntity18.java +++ b/BauSystem_18/src/de/steamwar/bausystem/entities/DetonatorEntity18.java @@ -19,12 +19,12 @@ package de.steamwar.bausystem.entities; -import com.sk89q.worldedit.world.entity.EntityTypes; import de.steamwar.bausystem.features.detonator.AbstractDetonatorEntity; import net.minecraft.network.protocol.game.PacketPlayOutEntityDestroy; import net.minecraft.network.protocol.game.PacketPlayOutEntityMetadata; import net.minecraft.network.protocol.game.PacketPlayOutSpawnEntity; import net.minecraft.server.network.PlayerConnection; +import net.minecraft.world.entity.EntityTypes; import net.minecraft.world.entity.item.EntityFallingBlock; import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.Blocks; @@ -60,7 +60,7 @@ public class DetonatorEntity18 extends EntityFallingBlock implements AbstractDet if (references++ > 0) return; - PacketPlayOutSpawnEntity packetPlayOutSpawnEntity = new PacketPlayOutSpawnEntity(getId(), cm(), position.getX(), position.getY(), position.getZ(), 0, 0, EntityTypes.FALLING_BLOCK, Block.i(Blocks.du.n()), ZERO); + PacketPlayOutSpawnEntity packetPlayOutSpawnEntity = new PacketPlayOutSpawnEntity(getId(), cm(), position.getX(), position.getY(), position.getZ(), 0, 0, EntityTypes.C, Block.i(Blocks.du.n()), ZERO); PlayerConnection playerConnection = ((CraftPlayer) player).getHandle().b; playerConnection.a(packetPlayOutSpawnEntity);