mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-03-12 22:49:03 +01:00
Fix island create event being marked async
This commit is contained in:
parent
e3eb2ac478
commit
ac6c3c8719
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user