Fix island create event being marked async

This commit is contained in:
Esophose 2019-05-24 01:52:10 -06:00
parent e3eb2ac478
commit ac6c3c8719
2 changed files with 7 additions and 8 deletions

View File

@ -12,7 +12,7 @@ public class IslandCreateEvent extends IslandEvent {
private final Player player;
public IslandCreateEvent(Island island, Player player) {
super(island, true);
super(island);
this.player = player;
}

View File

@ -43,6 +43,11 @@ public class LevellingManager {
private List<LevellingMaterial> materialStorage = new ArrayList<>();
private Method getBlockTypeMethod = null;
private Method getBlockTypeIdMethod = null;
private Method getBlockTypeDataMethod = null;
private Method getMaterialMethod = null;
public LevellingManager(SkyBlock skyblock) {
this.skyblock = skyblock;
@ -103,11 +108,6 @@ public class LevellingManager {
return;
}
Method getBlockTypeMethod = null;
Method getBlockTypeIdMethod = null;
Method getBlockTypeDataMethod = null;
Method getMaterialMethod = null;
for (ChunkSnapshot chunkSnapshotList : chunk.getAvailableChunkSnapshots()) {
for (int x = 0; x < 16; x++) {
for (int z = 0; z < 16; z++) {
@ -211,8 +211,7 @@ public class LevellingManager {
Long totalAmountInteger = levellingData.get(data);
long totalAmount = totalAmountInteger == null ? amount : totalAmountInteger + amount;
levellingData.put(data, totalAmount);
} catch (IllegalAccessException | IllegalArgumentException
| InvocationTargetException | NoSuchMethodException | SecurityException e) {
} catch (Exception e) {
e.printStackTrace();
}
}