Skip to content

Commit

Permalink
Update WeaponShootLimitListener.java
Browse files Browse the repository at this point in the history
  • Loading branch information
matsu1213 authored Jul 21, 2024
1 parent 8b23c9a commit b206bb2
Showing 1 changed file with 3 additions and 0 deletions.
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 b206bb2

Please sign in to comment.