fix pillar up in water without throwaway

This commit is contained in:
Leijurv 2018-09-25 11:32:40 -07:00
parent 6b810c570b
commit a3f42e2292
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -65,9 +65,6 @@ public class MovementPillar extends Movement {
} }
} }
} }
if (!context.hasThrowaway() && !ladder) {
return COST_INF;
}
if (fromDown instanceof BlockVine) { if (fromDown instanceof BlockVine) {
if (!hasAgainst(x, y, z)) { if (!hasAgainst(x, y, z)) {
return COST_INF; return COST_INF;
@ -85,6 +82,9 @@ public class MovementPillar extends Movement {
return LADDER_UP_ONE_COST; return LADDER_UP_ONE_COST;
} }
} }
if (!context.hasThrowaway() && !ladder) {
return COST_INF;
}
double hardness = MovementHelper.getMiningDurationTicks(context, x, y + 2, z, toBreak, true); double hardness = MovementHelper.getMiningDurationTicks(context, x, y + 2, z, toBreak, true);
if (hardness >= COST_INF) { if (hardness >= COST_INF) {
return COST_INF; return COST_INF;