Skip to content

Commit

Permalink
Clear the turtle's inventory on load
Browse files Browse the repository at this point in the history
  • Loading branch information
SquidDev committed Jul 9, 2018
1 parent 000786a commit 7e18f2c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ private void setState( ITurtleAccess turtle )

rotationYaw = turtle.getDirection().getHorizontalAngle();
rotationPitch = 0.0f;

inventory.clear();
}

public static TurtlePlayer get( ITurtleAccess access )
Expand Down

0 comments on commit 7e18f2c

Please # to comment.