Skip to content

Commit

Permalink
Update EntityDamageListener.java
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored Jan 20, 2024
1 parent 2dd9300 commit 2228b3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class EntityDamageListener implements Listener {

@EventHandler
public void onEntityDamage(EntityDamageEvent event) {
if(!loadConfig.throwfalldamage()) return;
if(loadConfig.throwfalldamage()) return;
if(!(event.getEntity() instanceof Player)) return;
Player player = (Player) event.getEntity();
if(main.getThrown().contains(player) && event.getCause() == DamageCause.FALL) {
Expand Down

0 comments on commit 2228b3a

Please sign in to comment.