Add ARROW type to 1.8.8

This commit is contained in:
fullwall 2022-05-11 20:45:11 +08:00
parent c03ffef940
commit 5b274ad7a7
2 changed files with 4 additions and 1 deletions

View File

@ -101,8 +101,9 @@ public class CreeperController extends MobEntityController {
// this method is called by both the entities involved - cancelling
// it will not stop the NPC from moving.
super.collide(entity);
if (npc != null)
if (npc != null) {
Util.callCollisionEvent(npc, entity.getBukkitEntity());
}
}
@Override

View File

@ -100,6 +100,7 @@ import net.citizensnpcs.nms.v1_8_R3.entity.WitherController;
import net.citizensnpcs.nms.v1_8_R3.entity.WolfController;
import net.citizensnpcs.nms.v1_8_R3.entity.ZombieController;
import net.citizensnpcs.nms.v1_8_R3.entity.nonliving.ArmorStandController;
import net.citizensnpcs.nms.v1_8_R3.entity.nonliving.ArrowController;
import net.citizensnpcs.nms.v1_8_R3.entity.nonliving.BoatController;
import net.citizensnpcs.nms.v1_8_R3.entity.nonliving.EggController;
import net.citizensnpcs.nms.v1_8_R3.entity.nonliving.EnderCrystalController;
@ -571,6 +572,7 @@ public class NMSImpl implements NMSBridge {
}
private void loadEntityTypes() {
EntityControllers.setEntityControllerForType(EntityType.ARROW, ArrowController.class);
EntityControllers.setEntityControllerForType(EntityType.ARMOR_STAND, ArmorStandController.class);
EntityControllers.setEntityControllerForType(EntityType.BAT, BatController.class);
EntityControllers.setEntityControllerForType(EntityType.BLAZE, BlazeController.class);