Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash when executing commands from signs #156

Merged
merged 3 commits into from
Feb 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ legacy-fabric-keybindings-api-v1.version = 1.0.0
legacy-fabric-lifecycle-events-v1.version = 1.0.1
legacy-fabric-logger-api-v1.version = 1.0.4
legacy-fabric-networking-api-v1.version = 2.0.0
legacy-fabric-permissions-api-v1.version = 1.0.0
legacy-fabric-permissions-api-v1.version = 1.0.1
legacy-fabric-registry-sync-api-v1.version = 2.1.0
legacy-fabric-rendering-api-v1.version = 1.0.0
legacy-fabric-resource-loader-v1.version = 2.1.0
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@

@Mixin(targets = "net/minecraft/block/entity/SignBlockEntity$2")
public abstract class SignBlockEntity_2Mixin implements PermissibleCommandSource {
@SuppressWarnings("ShadowTarget")
@Final
@Dynamic
@Shadow
PlayerEntity editor;
PlayerEntity field_9859;

@Override
public boolean hasPermission(String perm) {
return ((PermissibleCommandSource) this.editor).hasPermission(perm);
return ((PermissibleCommandSource) this.field_9859).hasPermission(perm);
}
}
Loading