Skip to content

Commit 64fd93e

Browse files
committed
fix: small fixes
1 parent d0619b5 commit 64fd93e

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,5 @@ versions/1.19.3/.gradle
4343
versions/1.19.3/build
4444
versions/1.20.1/.gradle
4545
versions/1.20.1/build
46+
versions/1.20.4/.gradle
47+
versions/1.20.4/build

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Gradle Configurations
2-
org.gradle.jvmargs=-Xmx2560M
2+
org.gradle.jvmargs=-Xmx3g
33
org.gradle.parallel=true
44

55
# Fabric Configurations

src/main/java/io/github/optijava/opt_carpet_addition/mixins/rule/commandLogger/CommandManager_Mixin.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.spongepowered.asm.mixin.Unique;
2020
import org.spongepowered.asm.mixin.injection.At;
2121
import org.spongepowered.asm.mixin.injection.Inject;
22-
//#if MC < 12000
22+
//#if MC <= 12001
2323
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
2424
//#endif
2525

@@ -33,8 +33,10 @@ public class CommandManager_Mixin {
3333
method = "execute",
3434
at = @At("HEAD")
3535
)
36-
//#if MC >= 12000
36+
//#if MC >= 12004
3737
//$$ public void injectExecute(ParseResults<ServerCommandSource> parseResults, String command, CallbackInfo ci) {
38+
//#elseif MC >= 12000
39+
//$$ public void injectExecute(ParseResults<ServerCommandSource> parseResults, String command, CallbackInfoReturnable<Integer> cir) {
3840
//#elseif MC >= 11900
3941
//$$ public void injectExecute(ParseResults<ServerCommandSource> parseResults, String command, CallbackInfoReturnable<Integer> cir) {
4042
//#else

src/main/java/io/github/optijava/opt_carpet_addition/mixins/rule/removeBats/BatEntity_Mixin.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class BatEntity_Mixin {
2121
cancellable = true
2222
)
2323
//#if MC == 12001
24-
//$$ private static void injectCanSpawn(EntityType<BatEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random, CallbackInfoReturnable<Boolean> cir) {
24+
//$$ private static void injectCanSpawn(EntityType<BatEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, net.minecraft.util.math.random.Random random, CallbackInfoReturnable<Boolean> cir) {
2525
//#elseif MC >= 11900
2626
//$$ private static void injectCanSpawn(EntityType<BatEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, net.minecraft.util.math.random.Random random, CallbackInfoReturnable<Boolean> cir) {
2727
//#else

0 commit comments

Comments
 (0)