mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 11:45:51 +00:00
Update RitualAnimation.java
This commit is contained in:
parent
2a492ffbf9
commit
391845fe86
@ -93,14 +93,16 @@ public class RitualAnimation implements Runnable {
|
|||||||
|
|
||||||
private void abort() {
|
private void abort() {
|
||||||
running = false;
|
running = false;
|
||||||
// for (ItemStack stack: items) {
|
pedestals.forEach((pblock)->{
|
||||||
// l.getWorld().dropItemNaturally(l, stack);
|
Variables.altarinuse.remove(pblock.getLocation());
|
||||||
// }
|
});
|
||||||
l.getWorld().playSound(l, Sound.BLOCK_NOTE_SNARE, 5F, 1F);
|
Variables.altarinuse.remove(altar.getLocation()); // should re-enable altar blocks on craft failure.
|
||||||
|
l.getWorld().playSound(l, Sound.ENTITY_ZOMBIE_ATTACK_IRON_DOOR, 5F, 1F);
|
||||||
altars.remove(altar);
|
altars.remove(altar);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void finish() {
|
private void finish() {
|
||||||
|
if (running == true) {
|
||||||
l.getWorld().playSound(l, Sound.ENTITY_ZOMBIE_VILLAGER_CURE, 1F, 1F);
|
l.getWorld().playSound(l, Sound.ENTITY_ZOMBIE_VILLAGER_CURE, 1F, 1F);
|
||||||
l.getWorld().playEffect(l, Effect.STEP_SOUND, Material.EMERALD_BLOCK);
|
l.getWorld().playEffect(l, Effect.STEP_SOUND, Material.EMERALD_BLOCK);
|
||||||
l.getWorld().dropItemNaturally(l.add(0, 1, 0), output);
|
l.getWorld().dropItemNaturally(l.add(0, 1, 0), output);
|
||||||
@ -109,8 +111,11 @@ public class RitualAnimation implements Runnable {
|
|||||||
Variables.altarinuse.remove(pblock.getLocation());
|
Variables.altarinuse.remove(pblock.getLocation());
|
||||||
});
|
});
|
||||||
Variables.altarinuse.remove(altar.getLocation()); // should re-enable altar blocks on craft completion.
|
Variables.altarinuse.remove(altar.getLocation()); // should re-enable altar blocks on craft completion.
|
||||||
|
|
||||||
altars.remove(altar);
|
altars.remove(altar);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
l.getWorld().playSound(l, Sound.ENTITY_ZOMBIE_BREAK_DOOR_WOOD, 1F, 1F);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user