mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 11:45:51 +00:00
redoing this to fix a thing.
This commit is contained in:
parent
c65d8cf49b
commit
8e3d2e332b
@ -45,6 +45,7 @@ public class RitualAnimation implements Runnable {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
AncientAltarListener.altarinuse = true;
|
||||||
idle();
|
idle();
|
||||||
if(this.stage == 36) {
|
if(this.stage == 36) {
|
||||||
finish();
|
finish();
|
||||||
@ -73,11 +74,9 @@ public class RitualAnimation implements Runnable {
|
|||||||
|
|
||||||
private void checkPedestal(Block pedestal) {
|
private void checkPedestal(Block pedestal) {
|
||||||
Item item = AncientAltarListener.findItem(pedestal);
|
Item item = AncientAltarListener.findItem(pedestal);
|
||||||
if (item == null) {
|
if (item == null) abort();
|
||||||
abort();
|
|
||||||
AncientAltarListener.altarinuse = false;
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
|
AncientAltarListener.altarinuse = true;
|
||||||
particles.add(pedestal.getLocation().add(0.5, 1.5, 0.5));
|
particles.add(pedestal.getLocation().add(0.5, 1.5, 0.5));
|
||||||
items.add(AncientAltarListener.fixItemStack(item.getItemStack(), item.getCustomName()));
|
items.add(AncientAltarListener.fixItemStack(item.getItemStack(), item.getCustomName()));
|
||||||
pedestal.getWorld().playSound(pedestal.getLocation(), Sound.ENTITY_ENDERMEN_TELEPORT, 5F, 2F);
|
pedestal.getWorld().playSound(pedestal.getLocation(), Sound.ENTITY_ENDERMEN_TELEPORT, 5F, 2F);
|
||||||
@ -100,6 +99,7 @@ public class RitualAnimation implements Runnable {
|
|||||||
l.getWorld().dropItemNaturally(l, stack);
|
l.getWorld().dropItemNaturally(l, stack);
|
||||||
}
|
}
|
||||||
l.getWorld().playSound(l, Sound.BLOCK_NOTE_SNARE, 5F, 1F);
|
l.getWorld().playSound(l, Sound.BLOCK_NOTE_SNARE, 5F, 1F);
|
||||||
|
AncientAltarListener.altarinuse = false;
|
||||||
altars.remove(altar);
|
altars.remove(altar);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -107,6 +107,7 @@ public class RitualAnimation implements Runnable {
|
|||||||
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);
|
||||||
|
AncientAltarListener.altarinuse = false;
|
||||||
altars.remove(altar);
|
altars.remove(altar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user