mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 09:55:11 +00:00
Fix IProjectile Events
Thank you @somehussar
This commit is contained in:
1 parent
782f21f1fe
commit
24d12e25a9
6 files changed
+57
-6
No files matched your search
@@ -79,6 +79,10 @@ public class ScriptProjectile<T extends EntityProjectile> extends ScriptEntity<T
|
||||
return type == EntityType.PROJECTILE || super.typeOf(type);
|
||||
}
|
||||
|
||||
public IEntity getThrower() {
|
||||
return NpcAPI.Instance().getIEntity(entity.getThrower());
|
||||
}
|
||||
|
||||
public void enableEvents() {
|
||||
if(ScriptContainer.Current == null)
|
||||
throw new CustomNPCsException("Can only be called during scripts");
|
||||
|
||||
Reference in new issue
Block a user