Unable to compile source code using gradlew.bat- error listed below #21
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Neither me nor a friend are able to compile the source code of this mod (modified or unmodified) due to an error, seemingly rooting back to the world generation files. Error dump below (simplified, as neither of us could figure out how to produce the verbose output).
Update: Deleting main\java\sosnitzka... fixes the duplicate error, but all other errors are still present. It's still not possible to compile the source.
Another update: These issues, aside from the duplicate world gen file, all link down to the code allowing Nether ores to generate in the overworld if the Nether is disabled. Removing the worldNetherless code allows the mod to compile. Please look into the way this is implemented.
The way it was implemented supposedly worked before, but I see it doesn't like it now. I don't yet know enough about static vs. non-static variable permissions in java, but probably instead of calling the method net.minecraft.server.MinecraftServer.getAllowNether() directly in the if(), doing it as a variable (like netherAllowed=net.minecraft.server.MinecraftServer.getAllowNether() ) that updates when the map initially loads (shouldn't be able to change the allow-nether option when the server is running) might get it dusted off and working.
So, To Do:
public integer (or whatever the vanilla var is) netherAllowed;
//Implement where the map is initially loaded
netherAllowed=net.minecraft.server.MinecraftServer.getAllowNether();
and change the line
if(!net.minecraft.server.MinecraftServer.getAllowNether()) to if(!netherAllowed)
Then there's the blockEnum / IBlockState problem, that might be from changes going forward to 1.16? I don't know.
Essentially the netherless ore code is more or less a copy/amalgamation of the nether ore code and the overworld ore code as a reference. Changes made to the overworld ore programming have to be mirrored on the netherless ore programming.