From e859d2c12ef8924bbe11f20daec58be016d87c60 Mon Sep 17 00:00:00 2001 From: StevenRS11 Date: Mon, 30 Sep 2013 00:59:59 -0400 Subject: [PATCH] readded constructor --- StevenDimDoors/mod_pocketDim/core/DimLink.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/StevenDimDoors/mod_pocketDim/core/DimLink.java b/StevenDimDoors/mod_pocketDim/core/DimLink.java index 9752713..cc7ca37 100644 --- a/StevenDimDoors/mod_pocketDim/core/DimLink.java +++ b/StevenDimDoors/mod_pocketDim/core/DimLink.java @@ -15,12 +15,13 @@ public abstract class DimLink protected DimLink(Point4D source, DimLink parent, int orientation) { + if (parent.source.getDimension() != source.getDimension()) { // Ban having children in other dimensions to avoid serialization issues with cross-dimensional tails throw new IllegalArgumentException("source and parent.source must have the same dimension."); } - + this.orientation=orientation; this.parent = parent; this.source = source; this.tail = parent.tail;