[Fixed] Crash when placing an eternal Crystal with no portal blocks in range (#323)
This commit is contained in:
parent
b37f3a6ba5
commit
73fdfd31c2
2 changed files with 5 additions and 1 deletions
|
@ -488,6 +488,7 @@ public class EternalRitual {
|
|||
}
|
||||
|
||||
public CompoundTag toTag(CompoundTag tag) {
|
||||
if (this.center == null || this.axis == null || this.exit == null) return null;
|
||||
tag.put("center", NbtUtils.writeBlockPos(center));
|
||||
tag.putString("axis", axis.getName());
|
||||
tag.putBoolean("active", active);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue