Skip to content

Commit

Permalink
fix damage with projectiles
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinWD committed Oct 9, 2020
1 parent 0b76988 commit 4b641b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/think/rpgitems/Events.java
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public void run() {

Location locationP = player.getLocation();
Location locationE = e.getEntity().getLocation();
if(!locationE.getWorld().equals(locationE)){
if(!locationE.getWorld().equals(locationP.getWorld())){
return;
}
double distance = locationP.distance(locationE);
Expand Down

0 comments on commit 4b641b7

Please sign in to comment.