From c28b0faf477d003172cb6e1e54f272b693b60668 Mon Sep 17 00:00:00 2001 From: matsu1213 Date: Fri, 21 Jun 2024 20:03:26 +0900 Subject: [PATCH] debug --- .../leoncsaddon/CustomProjectileSizeListener.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/main/java/net/azisaba/leoncsaddon/CustomProjectileSizeListener.java b/src/main/java/net/azisaba/leoncsaddon/CustomProjectileSizeListener.java index 19df69b..c8ff842 100644 --- a/src/main/java/net/azisaba/leoncsaddon/CustomProjectileSizeListener.java +++ b/src/main/java/net/azisaba/leoncsaddon/CustomProjectileSizeListener.java @@ -24,7 +24,7 @@ public void onShoot(WeaponShootEvent e){ Class clazz = Entity.class; Field f = clazz.getDeclaredField("size"); f.setAccessible(true); - f.set(pj, new EntitySize((float) data.projectileSizeXZ - 1.0f, (float) data.projectileSizeY - 1.0f, false)); + f.set(pj, new EntitySize((float) data.projectileSizeXZ, (float) data.projectileSizeY, true)); pj.setPosition(pj.locX(), pj.locY(), pj.locZ()); e.getPlayer().sendMessage(pj.getBoundingBox().toString()); }catch (Exception ex){ @@ -33,11 +33,4 @@ public void onShoot(WeaponShootEvent e){ } } - @EventHandler - public void onDamage(WeaponDamageEntityEvent e){ - if(e.getDamager() instanceof Projectile){ - e.getPlayer().sendMessage(((CraftProjectile)e.getDamager()).getHandle().getBoundingBox().toString()); - } - } - }