AbstractMultiverseWorld now observes its WorldProperties via Observer/Observable.

This commit is contained in:
Jeremy Wood 2012-11-20 15:43:51 -05:00
parent 4e9abcb62d
commit 64835ea400

View File

@ -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