Skip to content

Commit 662e11f

Browse files
committed
Fix teleport sometimes breaking
1 parent 32bac21 commit 662e11f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/java/org/dimdev/dimdoors/shared/rifts/targets/RestoringTarget.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public void unregister() {
6262
@Override
6363
public RGBA getColor() {
6464
if (wrappedDestination != null) {
65+
wrappedDestination.location = location;
6566
return wrappedDestination.getColor();
6667
} else {
6768
return getUnlinkedColor(location);

src/main/java/org/dimdev/dimdoors/shared/tileentities/TileEntityRift.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ public void updateColor() {
207207
} else if (destination == null) {
208208
color = new RGBA(0.7f, 0.7f, 0.7f, 1);
209209
} else {
210+
destination.setLocation(new Location(world, pos));
210211
RGBA newColor = destination.getColor();
211212
if (color == null && newColor != null || !color.equals(newColor)) {
212213
color = newColor;

0 commit comments

Comments
 (0)