From 7e18f2ceadcd114ca063893d4cc61e9aa75edd96 Mon Sep 17 00:00:00 2001 From: SquidDev Date: Mon, 9 Jul 2018 18:22:42 +0100 Subject: [PATCH] Clear the turtle's inventory on load --- .../dan200/computercraft/shared/turtle/core/TurtlePlayer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/dan200/computercraft/shared/turtle/core/TurtlePlayer.java b/src/main/java/dan200/computercraft/shared/turtle/core/TurtlePlayer.java index 3257e9ab11..ebe4477d8c 100644 --- a/src/main/java/dan200/computercraft/shared/turtle/core/TurtlePlayer.java +++ b/src/main/java/dan200/computercraft/shared/turtle/core/TurtlePlayer.java @@ -68,6 +68,8 @@ private void setState( ITurtleAccess turtle ) rotationYaw = turtle.getDirection().getHorizontalAngle(); rotationPitch = 0.0f; + + inventory.clear(); } public static TurtlePlayer get( ITurtleAccess access )