Fixed bug that prevents RadioReceiverHardware from being correctly loaded from database

This commit is contained in:
Simon 2018-05-31 22:28:35 -04:00
parent a005e2b163
commit ed1c4cff0b

View File

@ -1,6 +1,5 @@
package net.simon987.npcplugin;
import net.simon987.server.GameServer;
import net.simon987.server.assembly.HardwareModule;
import net.simon987.server.assembly.Status;
import net.simon987.server.assembly.Util;
@ -27,7 +26,7 @@ public class RadioReceiverHardware extends HardwareModule {
public RadioReceiverHardware(Document document, ControllableUnit unit) {
super(document, unit);
this.cubot = (ControllableUnit) GameServer.INSTANCE.getGameUniverse().getObject((long) document.get("cubot"));
this.cubot = unit;
}
@Override