From e8dd3e7ddcdd5735dfadccc5f9f819a9035ef6c3 Mon Sep 17 00:00:00 2001 From: KAMKEEL Date: Mon, 29 Nov 2021 23:15:42 -0500 Subject: [PATCH] V 1.3.2 This is just a small change to the way the pedestal works. --- CustomNPC-Plus-1.21.iml | 86 ------------------- build.gradle | 2 +- src/main/java/noppes/npcs/CustomNpcs.java | 2 +- .../noppes/npcs/blocks/BlockPedestal.java | 3 +- 4 files changed, 4 insertions(+), 89 deletions(-) delete mode 100644 CustomNPC-Plus-1.21.iml diff --git a/CustomNPC-Plus-1.21.iml b/CustomNPC-Plus-1.21.iml deleted file mode 100644 index 371deae12..000000000 --- a/CustomNPC-Plus-1.21.iml +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/build.gradle b/build.gradle index 5a1900d53..325d4b5a6 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,7 @@ buildscript { apply plugin: 'forge' -version = "1.3.1" +version = "1.3.2" group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "CustomNPC-Plus" diff --git a/src/main/java/noppes/npcs/CustomNpcs.java b/src/main/java/noppes/npcs/CustomNpcs.java index c4b469fa5..84bde7e6a 100644 --- a/src/main/java/noppes/npcs/CustomNpcs.java +++ b/src/main/java/noppes/npcs/CustomNpcs.java @@ -61,7 +61,7 @@ import noppes.npcs.entity.old.EntityNpcNagaMale; import noppes.npcs.entity.old.EntityNpcSkeleton; import noppes.npcs.scripted.wrapper.WrapperNpcAPI; -@Mod(modid = "customnpcs", name = "CustomNpcs", version = "1.3.1") +@Mod(modid = "customnpcs", name = "CustomNpcs", version = "1.3.2") public class CustomNpcs { @ConfigProp(info = "Disable Chat Bubbles") diff --git a/src/main/java/noppes/npcs/blocks/BlockPedestal.java b/src/main/java/noppes/npcs/blocks/BlockPedestal.java index 68c401f18..2caaa5786 100644 --- a/src/main/java/noppes/npcs/blocks/BlockPedestal.java +++ b/src/main/java/noppes/npcs/blocks/BlockPedestal.java @@ -8,6 +8,7 @@ import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.item.Item; +import net.minecraft.item.ItemBlock; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemSword; import net.minecraft.tileentity.TileEntity; @@ -41,7 +42,7 @@ public class BlockPedestal extends BlockTrigger{ par1World.markBlockForUpdate(i, j, k); updateSurrounding(par1World, i, j, k); } - else if(item == null || item.getItem() == null || !(item.getItem() instanceof ItemSword)) + else if(item == null || item.getItem() == null || item.getItem() instanceof ItemBlock) return true; else if(item != null && weapon == null){ tile.setInventorySlotContents(0, item);