IchHabeHunger54 / PropertyModifier

Allows tweaking various properties of blocks and items. Also adds some other tweaks to aid with that, such as the ability to create new creative tabs or add composter inputs.
https://www.curseforge.com/minecraft/mc-mods/property-modifier
MIT License
2 stars 0 forks source link

Limitation to setting the stack size #20

Open SiverDX opened 10 months ago

SiverDX commented 10 months ago

Why does this exist https://github.com/IchHabeHunger54/PropertyModifier/blob/a4d8ede5c4eb178e3654b7681021a9ec8791b779/src/main/java/ihh/propertymodifier/Config.java#L312

If you are worried about modifying items which can get damaged you could use the check vanilla does

public Item.Properties stacksTo(int pMaxStackSize) {
   if (this.maxDamage > 0) {
      throw new RuntimeException("Unable to have damage AND stack.");
   } else {
      this.maxStackSize = pMaxStackSize;
      return this;
   }
}