mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Commit 1 of 2 for ticket #643 -- eliminates Altar dupe bug by disallowing all interactions while altar is in use.
This commit is contained in:
parent
34150791bc
commit
2b9e24b45b
@ -48,6 +48,7 @@ public class RitualAnimation implements Runnable {
|
||||
idle();
|
||||
if(this.stage == 36) {
|
||||
finish();
|
||||
AncientAltarListener.altarinuse = false;
|
||||
return;
|
||||
}
|
||||
if(this.stage > 0 && this.stage % 4 == 0) {
|
||||
@ -72,7 +73,10 @@ public class RitualAnimation implements Runnable {
|
||||
|
||||
private void checkPedestal(Block pedestal) {
|
||||
Item item = AncientAltarListener.findItem(pedestal);
|
||||
if (item == null) abort();
|
||||
if (item == null) {
|
||||
abort();
|
||||
AncientAltarListener.altarinuse = false;
|
||||
}
|
||||
else {
|
||||
particles.add(pedestal.getLocation().add(0.5, 1.5, 0.5));
|
||||
items.add(AncientAltarListener.fixItemStack(item.getItemStack(), item.getCustomName()));
|
||||
|
Loading…
Reference in New Issue
Block a user