Skip to content
This repository was archived by the owner on May 26, 2021. It is now read-only.

Commit be9afed

Browse files
committed
We shouldn't assume that there's always a transaction involved.
1 parent 0c4af16 commit be9afed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mixer-common/src/main/java/pro/kdray/funniray/mixer/handlers/Interactive.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ public void onKeyDown(ControlInputEvent event){
116116
return;
117117
eventHandler.debug("&9&l[Mixer]&r&9 >>> " + participant.getUsername() + " pressed " + event.getControlInput().getControlID());
118118
eventHandler.debug("&9&l[Mixer]&r&9 >>> Control: " + event.getControlInput().getRawInput());
119-
if (buttonHashMap.get(event.getControlInput().getControlID()).onClick(participant)) {
119+
if (buttonHashMap.get(event.getControlInput().getControlID()).onClick(participant) && event.getTransaction() != null) {
120120
this.getEventHandler().runAsync(() -> {
121121
try {
122122
event.getTransaction().capture(this.client).get();
123123
} catch (InterruptedException | ExecutionException e) {
124-
e.printStackTrace();
124+
//Honestly who cares? //e.printStackTrace();
125125
}
126126
});
127127
}

0 commit comments

Comments
 (0)