Skip to content

Commit

Permalink
Modify checking caught
Browse files Browse the repository at this point in the history
  • Loading branch information
Verclene committed Jun 11, 2017
1 parent 06677d8 commit 2d8f73f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
@Mod(
modid = Strings.MODID,
name = "MobConfinement_EB",
version = "4.0.2.11",
version = "4.0.2.12",
dependencies = "required-after:net.blacklab.lib@[6.1.4.7,);"
+ "required-after:Forge@[1.9.4-12.17.0.1976,)",
acceptedMinecraftVersions = "[1.9.4,1.10.2]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public boolean onLeftClickEntity(ItemStack itemStack, EntityPlayer user,
Entity living) {
if (user instanceof EntityPlayer && living instanceof EntityLiving) {
if (itemStack.hasTagCompound()) {
if (itemStack.getTagCompound().getBoolean("Conf")) {
if (itemStack.getTagCompound().hasKey("Mob")) {
return false;
}
}
Expand Down Expand Up @@ -201,7 +201,6 @@ protected void executeCatch(EntityPlayer player, EntityLiving living)
entityNBT.setTag("Motion", this.newDoubleNBTList(new double[] {0.0D, 0.0D, 0.0D}));
entityNBT.setFloat("FallDistance", 0.0F);
nbttagcompound.setTag("Mob", entityNBT);
nbttagcompound.setBoolean("Conf", true);
nbttagcompound.setInteger(ModConstants.Strings.TIER_KEY, lCurrentTier);

String customName = living.hasCustomName() ? living.getCustomNameTag() : entityName;
Expand Down

0 comments on commit 2d8f73f

Please sign in to comment.