mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Update ArmorListener.java
This commit is contained in:
parent
f818668ba0
commit
a30650d16d
@ -59,7 +59,7 @@ public class ArmorListener implements Listener {
|
||||
&& e.getCause() == DamageCause.FALL
|
||||
) {
|
||||
e.setCancelled(true);
|
||||
p.getWorld().playSound(p.getLocation(), Sound.ENTITY_ZOMBIE_BREAK_WOODEN_DOOR, 2F, 2F);
|
||||
p.getWorld().playSound(p.getLocation(), Sound.ENTITY_ZOMBIE_BREAK_WOODEN_DOOR, 1F, 2F);
|
||||
p.setVelocity(new Vector(0.0, 0.7, 0.0));
|
||||
for (Entity n: p.getNearbyEntities(4, 4, 4)) {
|
||||
if (n instanceof LivingEntity && !n.getUniqueId().equals(p.getUniqueId())) {
|
||||
|
Loading…
Reference in New Issue
Block a user