character sizes, ..
This commit is contained in:
parent
74f730e450
commit
517e7d74f9
42 changed files with 405 additions and 209 deletions
|
@ -1760,7 +1760,7 @@ public class Player extends NetHandler implements ICrafting, Executor
|
|||
this.admin = admin;
|
||||
if(!this.isAdmin() && this.entity != null && this.entity.noclip) {
|
||||
this.entity.noclip = false;
|
||||
this.entity.flying &= this.entity.hasEffect(Potion.FLYING);
|
||||
this.entity.flying &= this.entity.hasEffect(Potion.FLYING) || this.entity.canNaturallyFly();
|
||||
this.entity.fallDistance = 0.0F;
|
||||
this.sendPlayerAbilities();
|
||||
this.addFeed(TextColor.RED + "NoClip wurde deaktiviert");
|
||||
|
@ -2572,7 +2572,7 @@ public class Player extends NetHandler implements ICrafting, Executor
|
|||
break;
|
||||
|
||||
case START_FLYING:
|
||||
this.entity.flying = this.entity.hasEffect(Potion.FLYING) || this.entity.noclip;
|
||||
this.entity.flying = this.entity.hasEffect(Potion.FLYING) || this.entity.noclip || this.entity.canNaturallyFly();
|
||||
break;
|
||||
|
||||
case STOP_FLYING:
|
||||
|
@ -2592,7 +2592,7 @@ public class Player extends NetHandler implements ICrafting, Executor
|
|||
// break;
|
||||
|
||||
case SET_HEIGHT:
|
||||
this.entity.setHeight(((float)ExtMath.clampi(packetIn.getAuxData(), 120, 320) * 0.01f) / this.entity.getSpecies().renderer.height);
|
||||
this.entity.setHeight(((float)ExtMath.clampi(packetIn.getAuxData(), this.entity.getMinSize(), this.entity.getMaxSize()) * 0.01f) / this.entity.getSpecies().renderer.height);
|
||||
// Log.CONSOLE.info("" + this.entity.height + "(" + this.entity.getHeight() + ")");
|
||||
break;
|
||||
|
||||
|
@ -2721,7 +2721,7 @@ public class Player extends NetHandler implements ICrafting, Executor
|
|||
if(!this.entity.noclip)
|
||||
this.entity.mountEntity(null);
|
||||
this.entity.noclip ^= true;
|
||||
this.entity.flying &= this.entity.hasEffect(Potion.FLYING) || this.entity.noclip;
|
||||
this.entity.flying &= this.entity.hasEffect(Potion.FLYING) || this.entity.noclip || this.entity.canNaturallyFly();
|
||||
this.entity.fallDistance = 0.0F;
|
||||
this.sendPlayerAbilities();
|
||||
this.addFeed((this.entity.noclip ? TextColor.GREEN : TextColor.RED) + "NoClip ist jetzt " + (this.entity.noclip ? "eingeschaltet" : "ausgeschaltet"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue