-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange offset in GameTest position #1948
Comments
Okay, so I see the issue now. Basically, the way that |
Bug report on 1.21.5 snapshot that was resolved: https://bugs.mojang.com/browse/MC-279599 |
🚀 This issue has been resolved in NeoForge version |
@ChampionAsh5357 |
Even if it writes 0,3,3 I put 0,2,3 @GameTest(template = "wye_track_passive")
public static void wyeTrackPassive(GameTestHelper helper) {
helper.pressButton(0, 2, 3);
helper.succeedWhenEntityPresent(EntityType.MINECART, 3, 2, 5);
} |
I am unable to verify after the PR. You are welcome to provide the NBT file in question so that I may further test. |
Ok, strangely enough I had to run a |
If I change a coordinate by decreasing the y by 1 and immediately run GameTestServer, it fails. |
To me, that suggests there's something wrong with the compilation process of your buildscript and that the classes in the build folder aren't getting updated. Running the tests on my end shows no issue, so there's probably something weird going on with your buildscript. |
I don't know, it doesn't seem strange to me. https://github.com/railcraft-reborn/railcraft/blob/1.21.3%2B/build.gradle |
Hmm, I've done a bit of testing, but I'm still having trouble replicating your situation. My best guess is that something strange is happening when the source set is applied to the run configurations such that it doesn't use the changes unless explicitly told to by building. Best I can suggest is try invalidating the gradle caches; otherwise, it would probably require a deep dive or someone with more knowledge than me to take a look at the situation. |
Minecraft Version: 1.21.3
NeoForge Version: 21.3.63
Steps to Reproduce:
/test pos
commandSet the value reported by the command to the code
![Image](https://private-user-images.githubusercontent.com/25778604/411267836-bf2492de-71dc-40bc-9d30-444b103f4f72.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1MDk3OTMsIm5iZiI6MTczOTUwOTQ5MywicGF0aCI6Ii8yNTc3ODYwNC80MTEyNjc4MzYtYmYyNDkyZGUtNzFkYy00MGJjLTlkMzAtNDQ0YjEwM2Y0ZjcyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDA1MDQ1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRkOTRiOWRkZWVmYzg4ZGZhMjRjNmQ2ZGQ5ZTZlNmI3Y2QxNWNjNmU1NjQwODRkMTlhNzIxMWYxNWRjNDM4YjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.FzEIq8XN4wy_mbZwNfk-sWObucvdgxEZyFU3IDyk5IE)
The test fails because it does not find the button
![Image](https://private-user-images.githubusercontent.com/25778604/411267835-0ed8655a-c090-4140-837d-89b69c48c990.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1MDk3OTMsIm5iZiI6MTczOTUwOTQ5MywicGF0aCI6Ii8yNTc3ODYwNC80MTEyNjc4MzUtMGVkODY1NWEtYzA5MC00MTQwLTgzN2QtODliNjljNDhjOTkwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE0VDA1MDQ1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU5MDVmODRhNWIxM2I4MmE4ZDhiZmNlMDNlN2Q5Njg4OWQyZjBmNDBlODM0ZDMzMGY2YTAyZjkwYzRiNDIyZWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.K4hqbOi8qcR5qlTYY1KWAJZDbcyEL7aHbbkNACINpNA)
This is the code that was in 1.21.1
and this in 1.21.3
When doing a test, blockpos gets two different values and it is probably the cause of the problem
The text was updated successfully, but these errors were encountered: