-
-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restrict Ring of Correction to block breaking
Fixes #4317, and also makes things less weird e.g. with scraping copper blocks or tilling soil.
- Loading branch information
1 parent
4c141cb
commit 8e145cd
Showing
3 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
Xplat/src/main/java/vazkii/botania/mixin/ServerPlayerGameModeAccessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package vazkii.botania.mixin; | ||
|
||
import net.minecraft.server.level.ServerPlayerGameMode; | ||
|
||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Accessor; | ||
|
||
@Mixin(ServerPlayerGameMode.class) | ||
public interface ServerPlayerGameModeAccessor { | ||
@Accessor("isDestroyingBlock") | ||
boolean botania_isDestroyingBlock(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters