Made the Event Constructor public (#460)
It's not possible to create a new event outside the carpet.script package (Commit 3105d5bb71 fix)
This commit is contained in:
1 parent
224ce8d671
commit
55d9b0b64b
1 file changed
+1
-1
@@ -675,7 +675,7 @@ public class CarpetEventServer
|
||||
|
||||
public final CallbackList handler;
|
||||
public final boolean globalOnly;
|
||||
Event(String name, int reqArgs, boolean isGlobalOnly)
|
||||
public Event(String name, int reqArgs, boolean isGlobalOnly)
|
||||
{
|
||||
this.name = name;
|
||||
this.handler = new CallbackList(reqArgs);
|
||||
|
||||
Reference in new issue
Block a user