-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Accessor Mixin causing NPE with /test runclosest
- Loading branch information
Showing
7 changed files
with
25 additions
and
42 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
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
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
16 changes: 0 additions & 16 deletions
16
src/main/java/mctester/mixin/accessor/GameTestAccessor.java
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
src/main/java/mctester/mixin/accessor/GameTestStateAccessor.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,9 @@ | ||
package mctester.mixin.accessor; | ||
|
||
import net.minecraft.test.GameTestState; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
|
||
@Mixin(GameTestState.class) | ||
public interface GameTestStateAccessor { | ||
|
||
} |
20 changes: 0 additions & 20 deletions
20
src/main/java/mctester/mixin/fixes/function_lookup/TestCommandMixin.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 |
---|---|---|
@@ -1,29 +1,9 @@ | ||
package mctester.mixin.fixes.function_lookup; | ||
|
||
import net.minecraft.block.entity.StructureBlockBlockEntity; | ||
import net.minecraft.server.command.TestCommand; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.injection.At; | ||
import org.spongepowered.asm.mixin.injection.Redirect; | ||
|
||
@Mixin(TestCommand.class) | ||
public class TestCommandMixin { | ||
|
||
// @Redirect( | ||
// method = "run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/test/TestSet;Z)V", | ||
// at = @At( | ||
// value = "INVOKE", | ||
// target = "Lnet/minecraft/block/entity/StructureBlockBlockEntity;getMetadata()Ljava/lang/String;" | ||
// ) | ||
// ) | ||
// private static String getTestFunctionIdentifier(StructureBlockBlockEntity structureBlockBlockEntity) { | ||
// String retval = structureBlockBlockEntity.getMetadata(); | ||
// if (retval.isEmpty()) { | ||
// retval = structureBlockBlockEntity.getTemplateName(); | ||
// if (retval.startsWith("minecraft:")) { | ||
// retval = retval.substring("minecraft:".length()); | ||
// } | ||
// } | ||
// return retval; | ||
// } //TODO check if this is still needed | ||
} |
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