Skip to content

Commit f299322

Browse files
committed
Fix payload consumer crash
1 parent 9635779 commit f299322

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/multicraft/CustomConsumePayloadDynamic.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ public void display(Stats stats){
4343

4444
@Override
4545
public void build(Building build, Table table){
46-
PayloadStack[] current = {payloads.get(build)[0]};
46+
PayloadStack[][] current = {payloads.get(build)};
4747

4848
table.table(cont -> {
4949
table.update(() -> {
50-
if(current[0] != payloads.get(build)[0]){
50+
if(current[0] != payloads.get(build)){
5151
rebuild(build, cont);
52-
current[0] = payloads.get(build)[0];
52+
current[0] = payloads.get(build);
5353
}
5454
});
5555

0 commit comments

Comments
 (0)