From d2f7281a89edcfe1b7fd16cd8413ca0c983cbb13 Mon Sep 17 00:00:00 2001 From: Checkium Folf Date: Fri, 21 Feb 2020 23:13:13 +0000 Subject: [PATCH] Fix removing items of foxes --- .idea/workspace.xml | 38 ++++++++----------- .../tamablefoxes/EntityTamableFox.java | 2 +- 2 files changed, 16 insertions(+), 24 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ac27c62..650a9a0 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,26 +1,9 @@ - - - + - - - - - - - - - - - - - - - @@ -196,7 +186,8 @@ - @@ -210,10 +201,11 @@ - - + + + diff --git a/src/main/java/net/seanomik/tamablefoxes/EntityTamableFox.java b/src/main/java/net/seanomik/tamablefoxes/EntityTamableFox.java index 7a97acf..a2e3e47 100644 --- a/src/main/java/net/seanomik/tamablefoxes/EntityTamableFox.java +++ b/src/main/java/net/seanomik/tamablefoxes/EntityTamableFox.java @@ -256,7 +256,7 @@ public class EntityTamableFox extends EntityFox { if (isOwnedBy(entityhuman)) { boolean flag = super.a(entityhuman, enumhand); - if ((item == Items.AIR || !entityhuman.isSneaking()) && !flag || this.isBaby()) { + if (!entityhuman.isSneaking() && (!flag || this.isBaby())) { this.goalSit.setSitting(!this.isSitting()); return flag; } else if (entityhuman.isSneaking()) {