mirror of
https://github.com/GTNewHorizons/IguanaTweaksTConstruct.git
synced 2026-11-26 06:43:05 +00:00
Don't allow part replacement if the part is the same
This commit is contained in:
1 parent
353a51bbbd
commit
ce26fa73dc
1 file changed
+3
@@ -114,6 +114,9 @@ public class ModPartReplacement extends ItemModifier {
|
||||
if(modifiers < 0)
|
||||
return false;
|
||||
|
||||
// is it the same material as the one we want to replace?
|
||||
if(newMatId == oldMatId)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user