Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matsu1213 committed Jun 20, 2024
1 parent e84995a commit 18fef18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public void onShoot(WeaponShootEvent e){
if(e.getProjectile() != null && data != null){
Entity pj = ((CraftEntity)e.getProjectile()).getHandle();
try {
Class<Entity> clazz = Entity.class;
Class<EntityProjectile> clazz = EntityProjectile.class;
Field f = clazz.getDeclaredField("size");
f.setAccessible(true);
f.set(pj, new EntitySize((float) data.projectileSizeXZ, (float) data.projectileSizeY, false));
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/net/azisaba/leoncsaddon/WeaponConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public void init(){
int reduceStartTick = configuration.getInt(key + ".reduceStartTick",0);
int reduceEndTick = configuration.getInt(key + ".reduceEndTick",0);
double reduceDamage = configuration.getDouble(key + ".reduceDamage",0);
double projectileSizeXZ = configuration.getDouble(key + ".projectileSize.xz",1.5);
double projectileSizeY = configuration.getDouble(key + ".projectileSize.y",1.5);
double projectileSizeXZ = configuration.getDouble(key + ".projectileSize.xz",0);
double projectileSizeY = configuration.getDouble(key + ".projectileSize.y",0);

weaponsMap.put(key,new WeaponConfigData(key, type, isMain, damage, headshotBonusDamage, criticalBonusDamage, guardMult, walkSpeed, canSprint, reduceStartTick, reduceEndTick, reduceDamage, projectileSizeXZ, projectileSizeY));

Expand Down

0 comments on commit 18fef18

Please sign in to comment.