From 64835ea400bb9a547131818708ea43d2a84a698d Mon Sep 17 00:00:00 2001 From: Jeremy Wood Date: Tue, 20 Nov 2012 15:43:51 -0500 Subject: [PATCH] AbstractMultiverseWorld now observes its WorldProperties via Observer/Observable. --- .../main/java/com/mvplugin/core/AbstractMultiverseWorld.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base/src/main/java/com/mvplugin/core/AbstractMultiverseWorld.java b/base/src/main/java/com/mvplugin/core/AbstractMultiverseWorld.java index 586a3451..0727e8fa 100644 --- a/base/src/main/java/com/mvplugin/core/AbstractMultiverseWorld.java +++ b/base/src/main/java/com/mvplugin/core/AbstractMultiverseWorld.java @@ -9,13 +9,15 @@ import com.mvplugin.core.minecraft.PortalType; import com.mvplugin.core.minecraft.WorldEnvironment; import java.util.List; +import java.util.Observer; -abstract class AbstractMultiverseWorld implements MultiverseWorld { +abstract class AbstractMultiverseWorld implements MultiverseWorld, Observer { private final WorldProperties worldProperties; protected AbstractMultiverseWorld(final WorldProperties worldProperties) { this.worldProperties = worldProperties; + worldProperties.addObserver(this); } @Override