Skip to content

Commit

Permalink
-Bugfix: (second attempt) Random crash with packet handling. (crash i…
Browse files Browse the repository at this point in the history
…n the Nether)
  • Loading branch information
MineMaarten committed Jan 26, 2016
1 parent 85cd029 commit 52a7b9d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ apply plugin: 'net.minecraftforge.gradle.forge'
project.ext {
massive = "1"
major = "13"
minor = "3"
minor = "4"
mcVersion = "1.8.9"
}

Expand Down
8 changes: 1 addition & 7 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
-The Heat Sink orientation is now dependant on the face clicked rather than the orientation of the player.
-Fixed a few missing localizations.
-The Omnidirectional Hopper and the Liquid Hopper work and have a proper render now.

-Bugfix: Heat Sink rendering rotation is broken.
-Bugfix: Missing textures due to casing problems.
-Bugfix: Random crash with packet handling. (crash in the Nether)
-Bugfix: (second attempt) Random crash with packet handling. (crash in the Nether)
2 changes: 1 addition & 1 deletion src/pneumaticCraft/common/network/AbstractPacket.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ public static void processPackets(){
public abstract void handleServerSide(REQ message, EntityPlayer player);

public boolean canHandlePacketAlready(REQ message, EntityPlayer player){
return true;
return player != null && player.worldObj != null;
}
}
2 changes: 1 addition & 1 deletion src/pneumaticCraft/common/network/PacketUpdateGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void toBytes(ByteBuf buf){

@Override
public boolean canHandlePacketAlready(PacketUpdateGui message, EntityPlayer player){
return player.openContainer instanceof ContainerPneumaticBase;
return super.canHandlePacketAlready(message, player) && player.openContainer instanceof ContainerPneumaticBase;
}

@Override
Expand Down

0 comments on commit 52a7b9d

Please sign in to comment.