mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 08:29:05 +00:00
Fix Paint Brush Error
This commit is contained in:
1 parent
131815ff06
commit
3730046b3c
1 file changed
+7
@@ -146,6 +146,13 @@ public class ItemNpcTool extends Item {
|
||||
public static boolean isPaintbrush(ItemStack itemStack) {
|
||||
if(itemStack == null)
|
||||
return false;
|
||||
|
||||
if(itemStack.getItem() == null)
|
||||
return false;
|
||||
|
||||
if(!(itemStack.getItem() instanceof ItemNpcTool))
|
||||
return false;
|
||||
|
||||
return itemStack.getItemDamage() == 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user