Also no swimming
This commit is contained in:
parent
a6e00d22e8
commit
4b94c64b4e
@ -144,6 +144,9 @@ public class AndroidCapability implements ICapabilityProvider, IAndroidCapabilit
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void tickInner() {
|
protected void tickInner() {
|
||||||
|
if (ent.getAirSupply() < ent.getMaxAirSupply())
|
||||||
|
ent.setAirSupply(ent.getMaxAirSupply());
|
||||||
|
|
||||||
if (!battery.isEmpty()) {
|
if (!battery.isEmpty()) {
|
||||||
BigDecimal demand = energy_stored_max.subtract(energy_stored, MatteryCapability.ROUND_RULES);
|
BigDecimal demand = energy_stored_max.subtract(energy_stored, MatteryCapability.ROUND_RULES);
|
||||||
|
|
||||||
|
@ -152,6 +152,10 @@ public class AndroidCapabilityPlayer extends AndroidCapability {
|
|||||||
cap.last_jump_ticks = 20;
|
cap.last_jump_ticks = 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ply.isSwimming()) {
|
||||||
|
ply.setSwimming(false);
|
||||||
|
}
|
||||||
|
|
||||||
if (cap.last_jump_ticks <= 0) {
|
if (cap.last_jump_ticks <= 0) {
|
||||||
event.getMovementInput().jumping = false;
|
event.getMovementInput().jumping = false;
|
||||||
event.getMovementInput().up = false;
|
event.getMovementInput().up = false;
|
||||||
@ -185,8 +189,9 @@ public class AndroidCapabilityPlayer extends AndroidCapability {
|
|||||||
// TODO: Maybe passive drain?
|
// TODO: Maybe passive drain?
|
||||||
// extractEnergyInner(BigDecimal.valueOf(new Random().nextDouble()), false);
|
// extractEnergyInner(BigDecimal.valueOf(new Random().nextDouble()), false);
|
||||||
|
|
||||||
if (ply.getAirSupply() < ply.getMaxAirSupply())
|
if (ply.isSwimming()) {
|
||||||
ply.setAirSupply(ply.getMaxAirSupply());
|
ply.setSwimming(false);
|
||||||
|
}
|
||||||
|
|
||||||
FoodData stats = ply.getFoodData();
|
FoodData stats = ply.getFoodData();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user