From 6a15f02160f8026d4ee6cd75cdcdc32406269455 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Mon, 12 Jul 2021 23:09:29 -0400 Subject: [PATCH] Fix #55 --- 1_14_R1/pom.xml | 2 +- .../FoxPathfinderGoalSleepWithOwner.java | 24 ---------------- 1_15_R1/pom.xml | 2 +- .../FoxPathfinderGoalSleepWithOwner.java | 24 ---------------- 1_16_R1/pom.xml | 2 +- .../FoxPathfinderGoalSleepWithOwner.java | 24 ---------------- 1_16_R2/pom.xml | 2 +- .../FoxPathfinderGoalSleepWithOwner.java | 23 --------------- 1_16_R3/pom.xml | 2 +- .../FoxPathfinderGoalSleepWithOwner.java | 24 ---------------- 1_17_1_R1/pom.xml | 2 +- .../FoxPathfinderGoalSleepWithOwner.java | 28 ------------------- 1_17_R1/pom.xml | 2 +- .../FoxPathfinderGoalSleepWithOwner.java | 28 ------------------- Plugin/pom.xml | 2 +- Utility/pom.xml | 2 +- pom.xml | 2 +- 17 files changed, 10 insertions(+), 185 deletions(-) diff --git a/1_14_R1/pom.xml b/1_14_R1/pom.xml index 190cd74..a1c8dda 100644 --- a/1_14_R1/pom.xml +++ b/1_14_R1/pom.xml @@ -7,7 +7,7 @@ tamablefoxes-parent net.seanomik - 2.1.2-SNAPSHOT + 2.1.3-SNAPSHOT tamablefoxes_v1_14_R1 diff --git a/1_14_R1/src/main/java/net/seanomik/tamablefoxes/versions/version_1_14_R1/pathfinding/FoxPathfinderGoalSleepWithOwner.java b/1_14_R1/src/main/java/net/seanomik/tamablefoxes/versions/version_1_14_R1/pathfinding/FoxPathfinderGoalSleepWithOwner.java index 578ba69..0ddb339 100644 --- a/1_14_R1/src/main/java/net/seanomik/tamablefoxes/versions/version_1_14_R1/pathfinding/FoxPathfinderGoalSleepWithOwner.java +++ b/1_14_R1/src/main/java/net/seanomik/tamablefoxes/versions/version_1_14_R1/pathfinding/FoxPathfinderGoalSleepWithOwner.java @@ -79,34 +79,10 @@ public class FoxPathfinderGoalSleepWithOwner extends PathfinderGoal { public void d() { this.a.setSleeping(false); - float f = this.a.world.j(1.0F); - if (this.b.dJ() >= 100 && (double)f > 0.77D && (double)f < 0.8D && (double)this.a.world.getRandom().nextFloat() < 0.7D) { - this.h(); - } - this.d = 0; - //this.a.v(false); < setRelaxStateOne this.a.getNavigation().o(); } - private void h() { - Random random = this.a.getRandom(); - BlockPosition.MutableBlockPosition blockposition_mutableblockposition = new BlockPosition.MutableBlockPosition(); - blockposition_mutableblockposition.a(this.a); - this.a.a((double)(blockposition_mutableblockposition.getX() + random.nextInt(11) - 5), (double)(blockposition_mutableblockposition.getY() + random.nextInt(5) - 2), (double)(blockposition_mutableblockposition.getZ() + random.nextInt(11) - 5), false); - blockposition_mutableblockposition.a(this.a); - LootTable loottable = this.a.world.getMinecraftServer().getLootTableRegistry().getLootTable(LootTables.af); - LootTableInfo.Builder loottableinfo_builder = (new LootTableInfo.Builder((WorldServer)this.a.world)).set(LootContextParameters.POSITION, blockposition_mutableblockposition).set(LootContextParameters.THIS_ENTITY, this.a).a(random); - List list = loottable.populateLoot(loottableinfo_builder.build(LootContextParameterSets.GIFT)); - Iterator iterator = list.iterator(); - - while(iterator.hasNext()) { - ItemStack itemstack = (ItemStack)iterator.next(); - this.a.world.addEntity(new EntityItem(this.a.world, (double)((float)blockposition_mutableblockposition.getX() - MathHelper.sin(this.a.aK * 0.017453292F)), (double)blockposition_mutableblockposition.getY(), (double)((float)blockposition_mutableblockposition.getZ() + MathHelper.cos(this.a.aK * 0.017453292F)), itemstack)); - } - - } - public void e() { if (this.b != null && this.c != null) { this.a.getGoalSit().setSitting(false); diff --git a/1_15_R1/pom.xml b/1_15_R1/pom.xml index 2d5ccd6..01d4f74 100644 --- a/1_15_R1/pom.xml +++ b/1_15_R1/pom.xml @@ -7,7 +7,7 @@ tamablefoxes-parent net.seanomik - 2.1.2-SNAPSHOT + 2.1.3-SNAPSHOT tamablefoxes_v1_15_R1 diff --git a/1_15_R1/src/main/java/net/seanomik/tamablefoxes/versions/version_1_15_R1/pathfinding/FoxPathfinderGoalSleepWithOwner.java b/1_15_R1/src/main/java/net/seanomik/tamablefoxes/versions/version_1_15_R1/pathfinding/FoxPathfinderGoalSleepWithOwner.java index 8bdd4a5..7b996b7 100644 --- a/1_15_R1/src/main/java/net/seanomik/tamablefoxes/versions/version_1_15_R1/pathfinding/FoxPathfinderGoalSleepWithOwner.java +++ b/1_15_R1/src/main/java/net/seanomik/tamablefoxes/versions/version_1_15_R1/pathfinding/FoxPathfinderGoalSleepWithOwner.java @@ -80,34 +80,10 @@ public class FoxPathfinderGoalSleepWithOwner extends PathfinderGoal { public void d() { this.a.setSleeping(false); - float f = this.a.world.f(1.0F); - if (this.b.ef() >= 100 && (double)f > 0.77D && (double)f < 0.8D && (double)this.a.world.getRandom().nextFloat() < 0.7D) { - this.h(); - } - this.d = 0; - //this.a.v(false); // setRelaxStateOne this.a.getNavigation().o(); } - private void h() { - Random random = this.a.getRandom(); - BlockPosition.MutableBlockPosition blockposition_mutableblockposition = new BlockPosition.MutableBlockPosition(); - blockposition_mutableblockposition.g(this.a.getChunkCoordinates()); - this.a.a((double)(blockposition_mutableblockposition.getX() + random.nextInt(11) - 5), (double)(blockposition_mutableblockposition.getY() + random.nextInt(5) - 2), (double)(blockposition_mutableblockposition.getZ() + random.nextInt(11) - 5), false); - blockposition_mutableblockposition.g(this.a.getChunkCoordinates()); - LootTable loottable = this.a.world.getMinecraftServer().getLootTableRegistry().getLootTable(LootTables.ak); - LootTableInfo.Builder loottableinfo_builder = (new LootTableInfo.Builder((WorldServer)this.a.world)).set(LootContextParameters.POSITION, blockposition_mutableblockposition).set(LootContextParameters.THIS_ENTITY, this.a).a(random); - List list = loottable.populateLoot(loottableinfo_builder.build(LootContextParameterSets.GIFT)); - Iterator iterator = list.iterator(); - - while(iterator.hasNext()) { - ItemStack itemstack = (ItemStack)iterator.next(); - this.a.world.addEntity(new EntityItem(this.a.world, (double)blockposition_mutableblockposition.getX() - (double)MathHelper.sin(this.a.aH * 0.017453292F), (double)blockposition_mutableblockposition.getY(), (double)blockposition_mutableblockposition.getZ() + (double)MathHelper.cos(this.a.aH * 0.017453292F), itemstack)); - } - - } - public void e() { if (this.b != null && this.c != null) { this.a.setSitting(false); diff --git a/1_16_R1/pom.xml b/1_16_R1/pom.xml index 1d9bb89..70e776d 100644 --- a/1_16_R1/pom.xml +++ b/1_16_R1/pom.xml @@ -7,7 +7,7 @@ tamablefoxes-parent net.seanomik - 2.1.2-SNAPSHOT + 2.1.3-SNAPSHOT tamablefoxes_v1_16_R1 diff --git a/1_16_R1/src/main/java/net/seanomik/tamablefoxes/versions/version_1_16_R1/pathfinding/FoxPathfinderGoalSleepWithOwner.java b/1_16_R1/src/main/java/net/seanomik/tamablefoxes/versions/version_1_16_R1/pathfinding/FoxPathfinderGoalSleepWithOwner.java index b9941c9..76e9faa 100644 --- a/1_16_R1/src/main/java/net/seanomik/tamablefoxes/versions/version_1_16_R1/pathfinding/FoxPathfinderGoalSleepWithOwner.java +++ b/1_16_R1/src/main/java/net/seanomik/tamablefoxes/versions/version_1_16_R1/pathfinding/FoxPathfinderGoalSleepWithOwner.java @@ -83,34 +83,10 @@ public class FoxPathfinderGoalSleepWithOwner extends PathfinderGoal { public void d() { this.a.setSleeping(false); - float f = this.a.world.f(1.0F); - if (this.b.eB() >= 100 && (double)f > 0.77D && (double)f < 0.8D && (double)this.a.world.getRandom().nextFloat() < 0.7D) { - this.h(); - } - this.d = 0; - //this.a.y(false); // setRelaxStateOne this.a.getNavigation().o(); } - private void h() { - Random random = this.a.getRandom(); - BlockPosition.MutableBlockPosition blockposition_mutableblockposition = new BlockPosition.MutableBlockPosition(); - blockposition_mutableblockposition.g(this.a.getChunkCoordinates()); - this.a.a((double)(blockposition_mutableblockposition.getX() + random.nextInt(11) - 5), (double)(blockposition_mutableblockposition.getY() + random.nextInt(5) - 2), (double)(blockposition_mutableblockposition.getZ() + random.nextInt(11) - 5), false); - blockposition_mutableblockposition.g(this.a.getChunkCoordinates()); - LootTable loottable = this.a.world.getMinecraftServer().getLootTableRegistry().getLootTable(LootTables.ak); - net.minecraft.server.v1_16_R1.LootTableInfo.Builder loottableinfo_builder = (new net.minecraft.server.v1_16_R1.LootTableInfo.Builder((WorldServer)this.a.world)).set(LootContextParameters.POSITION, blockposition_mutableblockposition).set(LootContextParameters.THIS_ENTITY, this.a).a(random); - List list = loottable.populateLoot(loottableinfo_builder.build(LootContextParameterSets.GIFT)); - Iterator iterator = list.iterator(); - - while(iterator.hasNext()) { - ItemStack itemstack = (ItemStack)iterator.next(); - this.a.world.addEntity(new EntityItem(this.a.world, (double)blockposition_mutableblockposition.getX() - (double)MathHelper.sin(this.a.aH * 0.017453292F), (double)blockposition_mutableblockposition.getY(), (double)blockposition_mutableblockposition.getZ() + (double)MathHelper.cos(this.a.aH * 0.017453292F), itemstack)); - } - - } - public void e() { if (this.b != null && this.c != null) { this.a.setSitting(false); diff --git a/1_16_R2/pom.xml b/1_16_R2/pom.xml index 610660d..bea7ed5 100644 --- a/1_16_R2/pom.xml +++ b/1_16_R2/pom.xml @@ -7,7 +7,7 @@ tamablefoxes-parent net.seanomik - 2.1.2-SNAPSHOT + 2.1.3-SNAPSHOT tamablefoxes_v1_16_R2 diff --git a/1_16_R2/src/main/java/net/seanomik/tamablefoxes/versions/version_1_16_R2/pathfinding/FoxPathfinderGoalSleepWithOwner.java b/1_16_R2/src/main/java/net/seanomik/tamablefoxes/versions/version_1_16_R2/pathfinding/FoxPathfinderGoalSleepWithOwner.java index 579e5ba..57a3b1d 100644 --- a/1_16_R2/src/main/java/net/seanomik/tamablefoxes/versions/version_1_16_R2/pathfinding/FoxPathfinderGoalSleepWithOwner.java +++ b/1_16_R2/src/main/java/net/seanomik/tamablefoxes/versions/version_1_16_R2/pathfinding/FoxPathfinderGoalSleepWithOwner.java @@ -83,33 +83,10 @@ public class FoxPathfinderGoalSleepWithOwner extends PathfinderGoal { public void d() { this.a.setSleeping(false); - float f = this.a.world.f(1.0F); - if (this.b.eB() >= 100 && (double)f > 0.77D && (double)f < 0.8D && (double)this.a.world.getRandom().nextFloat() < 0.7D) { - this.h(); - } - this.d = 0; - //this.a.y(false); // setRelaxStateOne this.a.getNavigation().o(); } - private void h() { - Random random = this.a.getRandom(); - BlockPosition.MutableBlockPosition blockposition_mutableblockposition = new BlockPosition.MutableBlockPosition(); - blockposition_mutableblockposition.g(this.a.getChunkCoordinates()); - this.a.a((double)(blockposition_mutableblockposition.getX() + random.nextInt(11) - 5), (double)(blockposition_mutableblockposition.getY() + random.nextInt(5) - 2), (double)(blockposition_mutableblockposition.getZ() + random.nextInt(11) - 5), false); - blockposition_mutableblockposition.g(this.a.getChunkCoordinates()); - LootTable loottable = this.a.world.getMinecraftServer().getLootTableRegistry().getLootTable(LootTables.ak); - net.minecraft.server.v1_16_R2.LootTableInfo.Builder loottableinfo_builder = (new net.minecraft.server.v1_16_R2.LootTableInfo.Builder((WorldServer)this.a.world)).set(LootContextParameters.ORIGIN, this.a.getPositionVector()).set(LootContextParameters.THIS_ENTITY, this.a).a(random); - List list = loottable.populateLoot(loottableinfo_builder.build(LootContextParameterSets.GIFT)); - Iterator iterator = list.iterator(); - - while(iterator.hasNext()) { - ItemStack itemstack = (ItemStack)iterator.next(); - this.a.world.addEntity(new EntityItem(this.a.world, (double)blockposition_mutableblockposition.getX() - (double)MathHelper.sin(this.a.aA * 0.017453292F), (double)blockposition_mutableblockposition.getY(), (double)blockposition_mutableblockposition.getZ() + (double)MathHelper.cos(this.a.aA * 0.017453292F), itemstack)); - } - } - public void e() { if (this.b != null && this.c != null) { this.a.setSitting(false); diff --git a/1_16_R3/pom.xml b/1_16_R3/pom.xml index 26056f3..31245f4 100644 --- a/1_16_R3/pom.xml +++ b/1_16_R3/pom.xml @@ -7,7 +7,7 @@ net.seanomik tamablefoxes-parent - 2.1.2-SNAPSHOT + 2.1.3-SNAPSHOT tamablefoxes_v1_16_R3 diff --git a/1_16_R3/src/main/java/net/seanomik/tamablefoxes/versions/version_1_16_R3/pathfinding/FoxPathfinderGoalSleepWithOwner.java b/1_16_R3/src/main/java/net/seanomik/tamablefoxes/versions/version_1_16_R3/pathfinding/FoxPathfinderGoalSleepWithOwner.java index 3c7134e..79071ad 100644 --- a/1_16_R3/src/main/java/net/seanomik/tamablefoxes/versions/version_1_16_R3/pathfinding/FoxPathfinderGoalSleepWithOwner.java +++ b/1_16_R3/src/main/java/net/seanomik/tamablefoxes/versions/version_1_16_R3/pathfinding/FoxPathfinderGoalSleepWithOwner.java @@ -82,34 +82,10 @@ public class FoxPathfinderGoalSleepWithOwner extends PathfinderGoal { public void d() { this.a.setSleeping(false); - float f = this.a.world.f(1.0F); - if (this.b.eC() >= 100 && (double)f > 0.77D && (double)f < 0.8D && (double)this.a.world.getRandom().nextFloat() < 0.7D) { - this.h(); - } - this.d = 0; - //this.a.y(false); this.a.getNavigation().o(); } - private void h() { - Random random = this.a.getRandom(); - BlockPosition.MutableBlockPosition blockposition_mutableblockposition = new BlockPosition.MutableBlockPosition(); - blockposition_mutableblockposition.g(this.a.getChunkCoordinates()); - this.a.a((double)(blockposition_mutableblockposition.getX() + random.nextInt(11) - 5), (double)(blockposition_mutableblockposition.getY() + random.nextInt(5) - 2), (double)(blockposition_mutableblockposition.getZ() + random.nextInt(11) - 5), false); - blockposition_mutableblockposition.g(this.a.getChunkCoordinates()); - LootTable loottable = this.a.world.getMinecraftServer().getLootTableRegistry().getLootTable(LootTables.ak); - net.minecraft.server.v1_16_R3.LootTableInfo.Builder loottableinfo_builder = (new net.minecraft.server.v1_16_R3.LootTableInfo.Builder((WorldServer)this.a.world)).set(LootContextParameters.ORIGIN, this.a.getPositionVector()).set(LootContextParameters.THIS_ENTITY, this.a).a(random); - List list = loottable.populateLoot(loottableinfo_builder.build(LootContextParameterSets.GIFT)); - Iterator iterator = list.iterator(); - - while(iterator.hasNext()) { - ItemStack itemstack = (ItemStack)iterator.next(); - this.a.world.addEntity(new EntityItem(this.a.world, (double)blockposition_mutableblockposition.getX() - (double)MathHelper.sin(this.a.aA * 0.017453292F), (double)blockposition_mutableblockposition.getY(), (double)blockposition_mutableblockposition.getZ() + (double)MathHelper.cos(this.a.aA * 0.017453292F), itemstack)); - } - - } - public void e() { if (this.b != null && this.c != null) { this.a.setSitting(false); diff --git a/1_17_1_R1/pom.xml b/1_17_1_R1/pom.xml index d6390b8..725e9fc 100644 --- a/1_17_1_R1/pom.xml +++ b/1_17_1_R1/pom.xml @@ -7,7 +7,7 @@ net.seanomik tamablefoxes-parent - 2.1.2-SNAPSHOT + 2.1.3-SNAPSHOT diff --git a/1_17_1_R1/src/main/java/net/seanomik/tamablefoxes/versions/version_1_17_1_R1/pathfinding/FoxPathfinderGoalSleepWithOwner.java b/1_17_1_R1/src/main/java/net/seanomik/tamablefoxes/versions/version_1_17_1_R1/pathfinding/FoxPathfinderGoalSleepWithOwner.java index d5e0944..e158f00 100644 --- a/1_17_1_R1/src/main/java/net/seanomik/tamablefoxes/versions/version_1_17_1_R1/pathfinding/FoxPathfinderGoalSleepWithOwner.java +++ b/1_17_1_R1/src/main/java/net/seanomik/tamablefoxes/versions/version_1_17_1_R1/pathfinding/FoxPathfinderGoalSleepWithOwner.java @@ -99,38 +99,10 @@ public class FoxPathfinderGoalSleepWithOwner extends Goal { public void stop() { this.fox.setSleeping(false); - float f = this.fox.level.getTimeOfDay(1.0F); - if (this.ownerPlayer.getSleepTimer() >= 100 && (double)f > 0.77D && (double)f < 0.8D && (double)this.fox.level.getRandom().nextFloat() < 0.7D) { - this.giveMorningGift(); - } - this.onBedTicks = 0; this.fox.getNavigation().stop(); } - private void giveMorningGift() { - Random random = this.fox.getRandom(); - BlockPos.MutableBlockPos blockposition_mutableblockposition = new BlockPos.MutableBlockPos(); - blockposition_mutableblockposition.set(this.fox.blockPosition()); - this.fox.randomTeleport((double)(blockposition_mutableblockposition.getX() + random.nextInt(11) - 5), (double)(blockposition_mutableblockposition.getY() + random.nextInt(5) - 2), (double)(blockposition_mutableblockposition.getZ() + random.nextInt(11) - 5), false); - blockposition_mutableblockposition.set(this.fox.blockPosition()); - LootTable loottable = this.fox.level.getServer().getLootTables().get(BuiltInLootTables.CAT_MORNING_GIFT); - net.minecraft.world.level.storage.loot.LootContext.Builder loottableinfo_builder = (new net.minecraft.world.level.storage.loot.LootContext.Builder((ServerLevel)this.fox.level)).withParameter(LootContextParams.ORIGIN, this.fox.position()).withParameter(LootContextParams.THIS_ENTITY, this.fox).withRandom(random); - List list = loottable.getRandomItems(loottableinfo_builder.create(LootContextParamSets.GIFT)); - Iterator iterator = list.iterator(); - - while(iterator.hasNext()) { - ItemStack itemstack = (ItemStack)iterator.next(); - ItemEntity entityitem = new ItemEntity(this.fox.level, (double)blockposition_mutableblockposition.getX() - (double) Mth.sin(this.fox.yBodyRot * 0.017453292F), (double)blockposition_mutableblockposition.getY(), (double)blockposition_mutableblockposition.getZ() + (double)Mth.cos(this.fox.yBodyRot * 0.017453292F), itemstack); - EntityDropItemEvent event = new EntityDropItemEvent(this.fox.getBukkitEntity(), (org.bukkit.entity.Item)entityitem.getBukkitEntity()); - entityitem.level.getCraftServer().getPluginManager().callEvent(event); - if (!event.isCancelled()) { - this.fox.level.addFreshEntity(entityitem); - } - } - - } - public void tick() { if (this.ownerPlayer != null && this.goalPos != null) { this.fox.setSitting(false); diff --git a/1_17_R1/pom.xml b/1_17_R1/pom.xml index 4e0106a..3b514ed 100644 --- a/1_17_R1/pom.xml +++ b/1_17_R1/pom.xml @@ -7,7 +7,7 @@ net.seanomik tamablefoxes-parent - 2.1.2-SNAPSHOT + 2.1.3-SNAPSHOT diff --git a/1_17_R1/src/main/java/net/seanomik/tamablefoxes/versions/version_1_17_R1/pathfinding/FoxPathfinderGoalSleepWithOwner.java b/1_17_R1/src/main/java/net/seanomik/tamablefoxes/versions/version_1_17_R1/pathfinding/FoxPathfinderGoalSleepWithOwner.java index ca5a70c..6346b41 100644 --- a/1_17_R1/src/main/java/net/seanomik/tamablefoxes/versions/version_1_17_R1/pathfinding/FoxPathfinderGoalSleepWithOwner.java +++ b/1_17_R1/src/main/java/net/seanomik/tamablefoxes/versions/version_1_17_R1/pathfinding/FoxPathfinderGoalSleepWithOwner.java @@ -99,38 +99,10 @@ public class FoxPathfinderGoalSleepWithOwner extends Goal { public void stop() { this.fox.setSleeping(false); - float f = this.fox.level.getTimeOfDay(1.0F); - if (this.ownerPlayer.getSleepTimer() >= 100 && (double)f > 0.77D && (double)f < 0.8D && (double)this.fox.level.getRandom().nextFloat() < 0.7D) { - this.giveMorningGift(); - } - this.onBedTicks = 0; this.fox.getNavigation().stop(); } - private void giveMorningGift() { - Random random = this.fox.getRandom(); - BlockPos.MutableBlockPos blockposition_mutableblockposition = new BlockPos.MutableBlockPos(); - blockposition_mutableblockposition.set(this.fox.blockPosition()); - this.fox.randomTeleport((double)(blockposition_mutableblockposition.getX() + random.nextInt(11) - 5), (double)(blockposition_mutableblockposition.getY() + random.nextInt(5) - 2), (double)(blockposition_mutableblockposition.getZ() + random.nextInt(11) - 5), false); - blockposition_mutableblockposition.set(this.fox.blockPosition()); - LootTable loottable = this.fox.level.getServer().getLootTables().get(BuiltInLootTables.CAT_MORNING_GIFT); - net.minecraft.world.level.storage.loot.LootContext.Builder loottableinfo_builder = (new net.minecraft.world.level.storage.loot.LootContext.Builder((ServerLevel)this.fox.level)).withParameter(LootContextParams.ORIGIN, this.fox.position()).withParameter(LootContextParams.THIS_ENTITY, this.fox).withRandom(random); - List list = loottable.getRandomItems(loottableinfo_builder.create(LootContextParamSets.GIFT)); - Iterator iterator = list.iterator(); - - while(iterator.hasNext()) { - ItemStack itemstack = (ItemStack)iterator.next(); - ItemEntity entityitem = new ItemEntity(this.fox.level, (double)blockposition_mutableblockposition.getX() - (double) Mth.sin(this.fox.yBodyRot * 0.017453292F), (double)blockposition_mutableblockposition.getY(), (double)blockposition_mutableblockposition.getZ() + (double)Mth.cos(this.fox.yBodyRot * 0.017453292F), itemstack); - EntityDropItemEvent event = new EntityDropItemEvent(this.fox.getBukkitEntity(), (org.bukkit.entity.Item)entityitem.getBukkitEntity()); - entityitem.level.getCraftServer().getPluginManager().callEvent(event); - if (!event.isCancelled()) { - this.fox.level.addFreshEntity(entityitem); - } - } - - } - public void tick() { if (this.ownerPlayer != null && this.goalPos != null) { this.fox.setSitting(false); diff --git a/Plugin/pom.xml b/Plugin/pom.xml index 8963c64..f06edb3 100644 --- a/Plugin/pom.xml +++ b/Plugin/pom.xml @@ -7,7 +7,7 @@ net.seanomik tamablefoxes-parent - 2.1.2-SNAPSHOT + 2.1.3-SNAPSHOT tamablefoxes diff --git a/Utility/pom.xml b/Utility/pom.xml index 6aab227..1ec5c2f 100644 --- a/Utility/pom.xml +++ b/Utility/pom.xml @@ -7,7 +7,7 @@ net.seanomik tamablefoxes-parent - 2.1.2-SNAPSHOT + 2.1.3-SNAPSHOT tamablefoxes-util diff --git a/pom.xml b/pom.xml index 9e3c741..15eb4e8 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ net.seanomik tamablefoxes-parent - 2.1.2-SNAPSHOT + 2.1.3-SNAPSHOT pom