mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
Fixed elevator order (highest floor first)
This commit is contained in:
parent
f6a9150296
commit
5ed452660f
@ -31,6 +31,7 @@
|
||||
#### Changes
|
||||
|
||||
#### Fixes
|
||||
* Fixed elevator floor order
|
||||
|
||||
## Release Candidate 19 (11 Jan 2021)
|
||||
|
||||
|
@ -99,7 +99,7 @@ public class ElevatorPlate extends SimpleSlimefunItem<BlockUseHandler> {
|
||||
for (int y = 0; y < b.getWorld().getMaxHeight(); y++) {
|
||||
if (y == b.getY()) {
|
||||
String name = ChatColors.color(BlockStorage.getLocationInfo(b.getLocation(), DATA_KEY));
|
||||
floors.addLast(new ElevatorFloor(name, index, b));
|
||||
floors.addFirst(new ElevatorFloor(name, index, b));
|
||||
index++;
|
||||
continue;
|
||||
}
|
||||
@ -108,7 +108,7 @@ public class ElevatorPlate extends SimpleSlimefunItem<BlockUseHandler> {
|
||||
|
||||
if (block.getType() == getItem().getType() && BlockStorage.check(block, getId())) {
|
||||
String name = ChatColors.color(BlockStorage.getLocationInfo(block.getLocation(), DATA_KEY));
|
||||
floors.addLast(new ElevatorFloor(name, index, block));
|
||||
floors.addFirst(new ElevatorFloor(name, index, block));
|
||||
index++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user