Skip to content

Commit

Permalink
Lesgo?
Browse files Browse the repository at this point in the history
  • Loading branch information
enjarai committed Oct 23, 2024
1 parent 567eac8 commit b5ee417
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ org.gradle.caching.debug=false
org.gradle.configureondemand=true

# Mod Properties
mod.version=3.7.2
mod.version=3.8.0
mod.group=nl.enjarai
mod.id=do_a_barrel_roll
mod.name=Do a Barrel Roll
mod.mc_version=1.21.2-rc2
mod.mc_version=1.21.2

# Global Dependencies
deps.mixin_squared=0.1.2-beta.4
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/nl/enjarai/doabarrelroll/DoABarrelRoll.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static PacketByteBuf createBuf() {

public static boolean checkPermission(ServerPlayNetworkHandler handler, String permission, int operatorLevel) {
//? if fabric {
return Permissions.check(handler.getPlayer(), permission, operatorLevel);
return Permissions.check(handler.getPlayer().getCommandSource(), permission, operatorLevel);
//?} else
/*return ModPermissions.resolve(handler.getPlayer(), permission, operatorLevel);*/
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public abstract class CameraMixin implements RollCamera {
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/render/Camera;setRotation(FF)V",
ordinal = 0
ordinal = 1
)
)
private boolean doABarrelRoll$addRoll1(Camera thiz, float yaw, float pitch, @Share("tickDelta") LocalFloatRef tickDelta) {
Expand All @@ -96,7 +96,7 @@ public abstract class CameraMixin implements RollCamera {
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/render/Camera;setRotation(FF)V",
ordinal = 1
ordinal = 2
)
)
private boolean doABarrelRoll$addRoll2(Camera thiz, float yaw, float pitch) {
Expand All @@ -109,7 +109,7 @@ public abstract class CameraMixin implements RollCamera {
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/render/Camera;setRotation(FF)V",
ordinal = 2
ordinal = 3
)
)
private boolean doABarrelRoll$addRoll3(Camera thiz, float yaw, float pitch) {
Expand Down
2 changes: 1 addition & 1 deletion versions/1.21.2-fabric/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ deps.compat_runtime=
deps.fapi=0.106.1+1.21.2
deps.modmenu=12.0.0-beta.1
deps.yacl=3.6.0+1.21.2
deps.cicada=0.8.4-beta.1+1.21.2-and-above
deps.cicada=0.9.0+1.21.2-and-above

# Mod
mod.mc_dep=>=1.21.2 <=1.21.2
Expand Down

0 comments on commit b5ee417

Please sign in to comment.