From 96d369b2f71b4f2bf007413f424658448ee0d2cf Mon Sep 17 00:00:00 2001 From: bruno Date: Thu, 25 Jul 2024 13:58:11 +0200 Subject: [PATCH] Test --- src/main/java/systems/brn/plasticgun/bullets/BulletEntity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/systems/brn/plasticgun/bullets/BulletEntity.java b/src/main/java/systems/brn/plasticgun/bullets/BulletEntity.java index d0a7f41..66ee77d 100644 --- a/src/main/java/systems/brn/plasticgun/bullets/BulletEntity.java +++ b/src/main/java/systems/brn/plasticgun/bullets/BulletEntity.java @@ -86,6 +86,7 @@ public class BulletEntity extends PersistentProjectileEntity implements PolymerE @Override protected void onBlockHit(BlockHitResult blockHitResult) { + this.setPosition(blockHitResult.getPos()); if (blockHitResult.getType() == HitResult.Type.BLOCK) { BlockState block = this.getWorld().getBlockState(blockHitResult.getBlockPos()); @@ -103,6 +104,7 @@ public class BulletEntity extends PersistentProjectileEntity implements PolymerE @Override protected void onEntityHit(EntityHitResult entityHitResult) { + this.setPosition(entityHitResult.getPos()); setSilent(false); playSound(SoundEvents.BLOCK_BAMBOO_HIT, 4.0F, 1.0F); setSilent(true);