Skip to content

Commit

Permalink
Merge pull request micdoodle8#4041 from clienthax/patch-1
Browse files Browse the repository at this point in the history
Fix handling of null facing in getTileEntityOnSide
  • Loading branch information
micdoodle8 authored Nov 8, 2020
2 parents aab8f10 + 9b56368 commit a57bd6a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,11 @@ public TileEntity getTileEntity(IBlockAccess world)
*/
public TileEntity getTileEntityOnSide(World world, EnumFacing side)
{
if (side == null)
{
return null;
}

int x = this.x;
int y = this.y;
int z = this.z;
Expand Down

0 comments on commit a57bd6a

Please sign in to comment.