Skip to content

Commit

Permalink
Merge remote-tracking branch 'master/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
matsu1213 committed Aug 5, 2024
2 parents e612525 + b206bb2 commit 8f3066e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import java.lang.reflect.Field;

public class CustomProjectileSizeListener implements Listener {

/*
@EventHandler
public void onShoot(WeaponShootEvent e){
WeaponConfigData data = LeonCSAddon.INSTANCE.getWeaponConfig().getWeaponConfigData(e.getWeaponTitle());
Expand All @@ -33,5 +33,5 @@ public void onShoot(WeaponShootEvent e){
}
}
}

*/
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public void onPreShoot(WeaponPrepareShootEvent e){
if(otherData != null && otherData.isMain){
if(data.requirements != null && otherData.type != null && Collections.disjoint(data.requirements, otherData.type)){
e.setCancelled(true);
}else {
e.setCancelled(false);
return;
}
}
}
Expand Down

0 comments on commit 8f3066e

Please sign in to comment.