Skip to content

Commit

Permalink
shootlimitlandmine
Browse files Browse the repository at this point in the history
  • Loading branch information
matsu1213 committed Jun 23, 2024
1 parent d5a66a3 commit 8179fbc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void onDrop(ItemSpawnEvent e){
if(e.getEntity().getPickupDelay() != 24000) return;

for(Player player: e.getEntity().getWorld().getPlayers()){
if(e.getEntity().getLocation().equals(player.getEyeLocation())){
if(e.getEntity().getLocation().distanceSquared(player.getEyeLocation()) < 1){
WeaponConfigData data = LeonCSAddon.INSTANCE.getWeaponConfig().getWeaponConfigData(new CSUtility().getWeaponTitle(player.getInventory().getItemInMainHand()));
if(data != null && !data.isMain){
for(int i = 0; i < 9; i++){
Expand Down

0 comments on commit 8179fbc

Please sign in to comment.