Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ public static BukkitElevator createLift(Block block, String cause){
plugin.logDebug("Starting elevator gen caused by: " + cause + " v" + plugin.getDescription().getVersion());
BukkitElevator bukkitElevator = new BukkitElevator(plugin);
bukkitElevator.cause = "Starting elevator gen caused by: " + cause + " v" + plugin.getDescription().getVersion();
int yscan = block.getY() - 1;
int yscan = block.getY();
while(yscan >= block.getWorld().getMinHeight()){
if (yscan == block.getWorld().getMinHeight()){ //Gone too far with no base abort!
yscan--;
if (yscan < block.getWorld().getMinHeight()){ //Gone too far with no base abort!
plugin.logDebug("No elevator base found");
bukkitElevator.setFailReason("No elevator base found");
return null;
Expand All @@ -90,7 +91,6 @@ public static BukkitElevator createLift(Block block, String cause){
plugin.logDebug("Is Base Block: " + BukkitElevatorManager.isBaseBlock(checkBlock));
return null;
}
yscan--;
}
plugin.logDebug("Base size: " + bukkitElevator.baseBlocks.size() + " at " + bukkitElevator.baseBlocks.iterator().next().getLocation().toString());

Expand Down