mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-11 21:57:40 +00:00
Add some more Attack Speed Handling
This commit is contained in:
1 parent
8dad290486
commit
592a910cbc
6 files changed
+39
-14
No files matched your search
@@ -173,9 +173,6 @@ public class ServerEventsHandler {
|
||||
|
||||
@SubscribeEvent
|
||||
public void invoke(LivingHurtEvent event) {
|
||||
|
||||
|
||||
|
||||
if(event.source.getEntity() instanceof EntityPlayerMP && event.entity instanceof EntityLivingBase ){
|
||||
EntityPlayerMP ep = (EntityPlayerMP) event.source.getEntity();
|
||||
if(ep.getHeldItem() != null && ep.getHeldItem().getItem() instanceof ItemLinked){
|
||||
@@ -185,7 +182,6 @@ public class ServerEventsHandler {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!(event.entityLiving instanceof EntityPlayer))
|
||||
return;
|
||||
|
||||
|
||||
Reference in new issue
Block a user