Don't allow part replacement if the part is the same

This commit is contained in:
Bernhard Bonigl committed 2014-07-29 23:35:59 +02:00
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;
}