Skip to content

Commit 064862c

Browse files
Merge pull request #39 from XTerPL/EventFix
Fix ScriptMenuButtonClick Event not firing v2
2 parents 4bf69dc + db11636 commit 064862c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/github/techstreet/dfscript/script/menu/ScriptMenuButton.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public String getIdentifier() {
2525
public boolean mouseClicked(double x, double y, int button) {
2626
if (getBounds().contains(x,y)) {
2727
DFScript.MC.getSoundManager().play(PositionedSoundInstance.ambient(SoundEvents.UI_BUTTON_CLICK.value(), 1f,1f));
28-
//script.invoke(new ScriptMenuClickButtonEvent(identifier));
28+
script.invoke(new ScriptMenuClickButtonEvent(identifier));
2929
return true;
3030
}
3131
return false;

0 commit comments

Comments
 (0)