Skip to content

Commit

Permalink
fix: small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
OptiJava committed Jul 13, 2024
1 parent d0619b5 commit 64fd93e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ versions/1.19.3/.gradle
versions/1.19.3/build
versions/1.20.1/.gradle
versions/1.20.1/build
versions/1.20.4/.gradle
versions/1.20.4/build
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Gradle Configurations
org.gradle.jvmargs=-Xmx2560M
org.gradle.jvmargs=-Xmx3g
org.gradle.parallel=true

# Fabric Configurations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import org.spongepowered.asm.mixin.Unique;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
//#if MC < 12000
//#if MC <= 12001
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
//#endif

Expand All @@ -33,8 +33,10 @@ public class CommandManager_Mixin {
method = "execute",
at = @At("HEAD")
)
//#if MC >= 12000
//#if MC >= 12004
//$$ public void injectExecute(ParseResults<ServerCommandSource> parseResults, String command, CallbackInfo ci) {
//#elseif MC >= 12000
//$$ public void injectExecute(ParseResults<ServerCommandSource> parseResults, String command, CallbackInfoReturnable<Integer> cir) {
//#elseif MC >= 11900
//$$ public void injectExecute(ParseResults<ServerCommandSource> parseResults, String command, CallbackInfoReturnable<Integer> cir) {
//#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class BatEntity_Mixin {
cancellable = true
)
//#if MC == 12001
//$$ private static void injectCanSpawn(EntityType<BatEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random, CallbackInfoReturnable<Boolean> cir) {
//$$ private static void injectCanSpawn(EntityType<BatEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, net.minecraft.util.math.random.Random random, CallbackInfoReturnable<Boolean> cir) {
//#elseif MC >= 11900
//$$ private static void injectCanSpawn(EntityType<BatEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, net.minecraft.util.math.random.Random random, CallbackInfoReturnable<Boolean> cir) {
//#else
Expand Down

0 comments on commit 64fd93e

Please sign in to comment.