mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
Added misspelled cancel functions to player & forge events, and correctly spelled cancel functions to npc events
This commit is contained in:
1 parent
6bfbffb0e6
commit
18e02461a6
2 files changed
+14
No files matched your search
@@ -13,4 +13,10 @@ public class CustomNPCsEvent extends Event{
|
||||
|
||||
public CustomNPCsEvent() {
|
||||
}
|
||||
|
||||
public void setCancelled(boolean bo){
|
||||
this.setCanceled(bo);
|
||||
}
|
||||
|
||||
public boolean isCancelled(){return this.isCanceled();}
|
||||
}
|
||||
@@ -11,4 +11,12 @@ class ScriptEvent{
|
||||
public boolean isCancelled(){
|
||||
return isCancelled;
|
||||
}
|
||||
|
||||
public void setCanceled(boolean bo){
|
||||
isCancelled = bo;
|
||||
}
|
||||
|
||||
public boolean isCanceled(){
|
||||
return isCancelled;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user