Skip to content

Commit

Permalink
Fix #84
Browse files Browse the repository at this point in the history
  • Loading branch information
Edivad99 committed Aug 17, 2023
1 parent 73527ac commit 3e81aa6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public boolean handle(Supplier<NetworkEvent.Context> context) {
? senderProfile
: null);
signalBox.syncToClient();
signalBox.setChanged();
});
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public void blockRemoved() {

@Override
public void setChanged() {
super.setChanged();
if (this.level == null) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ protected void saveAdditional(CompoundTag tag) {
@Override
public void load(CompoundTag tag) {
super.load(tag);
var actionAspectsTag = tag.getList("actionAspects", Tag.TAG_STRING);
var actionAspectsTag = tag.getList("actionSignalAspects", Tag.TAG_STRING);
this.actionSignalAspects.clear();
for (var aspectTag : actionAspectsTag) {
SignalAspect.getByName(aspectTag.getAsString()).ifPresent(this.actionSignalAspects::add);
}
Expand Down

0 comments on commit 3e81aa6

Please sign in to comment.