mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-08-23 22:12:46 +02:00
Fix teleport trigger not loaded from the database
This commit is contained in:
parent
c6c8fd5924
commit
833aeaaa8e
|
@ -93,6 +93,7 @@ public class HopperImpl implements Hopper {
|
|||
this.level = getLevelManager().getLevel((int) map.get("level"));
|
||||
this.placedBy = UUID.fromString((String) map.get("placed_by"));
|
||||
this.lastPlayerOpened = map.get("last_opened_by") != null ? UUID.fromString((String) map.get("last_opened_by")) : null;
|
||||
this.teleportTrigger = TeleportTrigger.valueOf((String) map.get("teleport_trigger"));
|
||||
|
||||
DataManager dataManager = EpicHoppers.getPlugin(EpicHoppers.class).getDataManager();
|
||||
dataManager.getDatabaseConnector().connectDSL(dslContext -> {
|
||||
|
|
Loading…
Reference in New Issue
Block a user