Closed TheGamer1002 closed 1 year ago
the line references itself what the heck
public static ItemStack[] calcCost(UnitType u){
...
for(Reconstructor b : recons){
...
if(r != null){
ItemStack[] cost = calcCost(r[0]);
...
}
...
}
so like
might add this was on startup of the game
am i just using the wrong version of java
the code is 18 months old what
so i think a different mod is doing this but its still probably not good practice to call something inside itself
okay this happens in other places #166
so i think a different mod is doing this but its still probably not good practice to call something inside itself
recursion is good practice people hated recursion because they hate concepts they don't understand
recursive methods are pretty good as long as you know what you're doing
i mean yeah, that sounds about right. i dont know what im doing. but like shouldnt there be a thing to prevent the recursiveness? because i dont know how but a different mod somehow interfaced with this mod
im just gonna close this because im stupid and opened this issue on 3 hours of sleep
Platform: macOS 13 Ventura (yeah i know)
Build: 141.3
Mod Version: 1.09
Issue: literally just crashes (foregoing the error template because i know code [hopefully])
this goes on for a while uh like hundreds of lines
this is the line in question
Place an X (no spaces) between the brackets to confirm that you have read the line below.
The original template is by Anuke, modified by sk7725.