Skip to content

Commit

Permalink
Fix payload consumer crash
Browse files Browse the repository at this point in the history
  • Loading branch information
JojoFR1 committed Feb 15, 2024
1 parent 9635779 commit f299322
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/multicraft/CustomConsumePayloadDynamic.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ public void display(Stats stats){

@Override
public void build(Building build, Table table){
PayloadStack[] current = {payloads.get(build)[0]};
PayloadStack[][] current = {payloads.get(build)};

table.table(cont -> {
table.update(() -> {
if(current[0] != payloads.get(build)[0]){
if(current[0] != payloads.get(build)){
rebuild(build, cont);
current[0] = payloads.get(build)[0];
current[0] = payloads.get(build);
}
});

Expand Down

0 comments on commit f299322

Please sign in to comment.