mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-09-03 02:20:55 +02: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;
|
private final Player player;
|
||||||
|
|
||||||
public IslandCreateEvent(Island island, Player player) {
|
public IslandCreateEvent(Island island, Player player) {
|
||||||
super(island, true);
|
super(island);
|
||||||
this.player = player;
|
this.player = player;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,11 @@ public class LevellingManager {
|
||||||
|
|
||||||
private List<LevellingMaterial> materialStorage = new ArrayList<>();
|
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) {
|
public LevellingManager(SkyBlock skyblock) {
|
||||||
this.skyblock = skyblock;
|
this.skyblock = skyblock;
|
||||||
|
|
||||||
|
@ -103,11 +108,6 @@ public class LevellingManager {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Method getBlockTypeMethod = null;
|
|
||||||
Method getBlockTypeIdMethod = null;
|
|
||||||
Method getBlockTypeDataMethod = null;
|
|
||||||
Method getMaterialMethod = null;
|
|
||||||
|
|
||||||
for (ChunkSnapshot chunkSnapshotList : chunk.getAvailableChunkSnapshots()) {
|
for (ChunkSnapshot chunkSnapshotList : chunk.getAvailableChunkSnapshots()) {
|
||||||
for (int x = 0; x < 16; x++) {
|
for (int x = 0; x < 16; x++) {
|
||||||
for (int z = 0; z < 16; z++) {
|
for (int z = 0; z < 16; z++) {
|
||||||
|
@ -211,8 +211,7 @@ public class LevellingManager {
|
||||||
Long totalAmountInteger = levellingData.get(data);
|
Long totalAmountInteger = levellingData.get(data);
|
||||||
long totalAmount = totalAmountInteger == null ? amount : totalAmountInteger + amount;
|
long totalAmount = totalAmountInteger == null ? amount : totalAmountInteger + amount;
|
||||||
levellingData.put(data, totalAmount);
|
levellingData.put(data, totalAmount);
|
||||||
} catch (IllegalAccessException | IllegalArgumentException
|
} catch (Exception e) {
|
||||||
| InvocationTargetException | NoSuchMethodException | SecurityException e) {
|
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user