Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #316 from buildist/master
Browse files Browse the repository at this point in the history
Don't use ice physics when noclipping, fix +ophax
  • Loading branch information
mstefarov committed May 20, 2015
2 parents 8111552 + 3d449df commit 7f4d7ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/mojang/minecraft/mob/Mob.java
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ public void travel(float yya, float xxa) {
yd *= 0.98F;
zd *= 0.91F;
yd = (float) (yd - 0.08D);
if (Block.blocks[var1] != Block.ICE) {
if (Block.blocks[var1] != Block.ICE || noPhysics) {

if (flyingMode) {
y1 = 0F;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/mojang/minecraft/net/PacketHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ private void handleStandardPacket(NetworkManager networkManager, PacketType pack
// Read WoM-style hack control flags
//TODO: if(!isExtEnabled(ProtocolExtension.HACK_CONTROL)){ ... }
minecraft.womConfig.readHax(name, motd);
minecraft.player.userType = (Byte) packetParams[3];
if (!receivedExtInfo) {
// Only process WoM-style "cfg" command if CPE is not enabled
minecraft.womConfig.readCfg(motd);
}
minecraft.player.userType = (Byte) packetParams[3];
setLoadingLevel(true);
if (minecraft.womConfig.isEnabled() && minecraft.womConfig.hasKey("server.sendwomid")) {
String womIdCmd = "/womid ClassiCube" + Constants.CLASSICUBE_VERSION;
Expand Down

0 comments on commit 7f4d7ca

Please sign in to comment.