cleanup undef
This commit is contained in:
1 parent
24c1ee8d3d
commit
6413c17657
5 files changed
+63
-25
No files matched your search
@@ -479,6 +479,7 @@ public class CarpetEventServer
|
||||
return Event.byName.get(event).handler.addEventCallDirect(host, function);
|
||||
}
|
||||
|
||||
|
||||
public boolean removeEvent(String event, String funName)
|
||||
{
|
||||
|
||||
@@ -489,6 +490,11 @@ public class CarpetEventServer
|
||||
return true;
|
||||
}
|
||||
|
||||
public void removeEventDirectly(String event, ScriptHost host, String funName)
|
||||
{
|
||||
Event.byName.get(event).handler.removeEventCall(host.getName(), funName);
|
||||
}
|
||||
|
||||
public void removeAllHostEvents(String hostName)
|
||||
{
|
||||
Event.byName.values().forEach((e) -> e.handler.removeAllCalls(hostName));
|
||||
|
||||
Reference in new issue
Block a user