Skip to content

Commit

Permalink
Fix baubles being stackable
Browse files Browse the repository at this point in the history
I loved oversights!
  • Loading branch information
IcarussOne committed Dec 9, 2024
1 parent 89fb7ba commit 9902734
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ org.gradle.jvmargs = -Xmx3G

# Mod Information
mod_id = mmbaubles
mod_version = 1.0.0
mod_version = 1.0.1
maven_group = mod.icarus
archives_base_name = MowziesMobsBaubles

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
import net.minecraft.world.World;

public class ItemEarthTrinket extends Item implements IBauble {
public ItemEarthTrinket() {
this.setMaxStackSize(1);
}

@Override
public void onWornTick(ItemStack itemstack, EntityLivingBase player) {
player.addPotionEffect(new PotionEffect(PotionHandler.GEOMANCY, 2, 0, false, false));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
import net.minecraft.world.World;

public class ItemSunTrinket extends Item implements IBauble {
public ItemSunTrinket() {
this.setMaxStackSize(1);
}

@Override
public void onWornTick(ItemStack itemstack, EntityLivingBase player) {
player.addPotionEffect(new PotionEffect(PotionHandler.SUNS_BLESSING, 2, 0, false, false));
Expand All @@ -43,6 +47,6 @@ public void addInformation(ItemStack stack, @Nullable World world, List<String>
list.add(I18n.format("tooltip.mmbaubles.sun_trinket.equip"));
list.add(I18n.format(""));
list.add(I18n.format("item.grantSunsBlessing.text.1"));
list.add(I18n.format("item.grantSunsBlessing.text.2.nocooldown"));
list.add(I18n.format("item.grantSunsBlessing.text.2.notimer"));
}
}
2 changes: 1 addition & 1 deletion src/main/resources/assets/mmbaubles/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ item.mmbaubles.sun_trinket.name=Trinket of the Sun
# Tooltips
tooltip.mmbaubles.earth_trinket.equip=Grants the Geomancy effect while equipped
tooltip.mmbaubles.sun_trinket.equip=Grants the Sun's Blessing effect while equipped
item.grantSunsBlessing.text.2.nocooldown=With empty hand, sneak-right-click to fire a solar beam
item.grantSunsBlessing.text.2.notimer=With empty hand, sneak-right-click to fire a solar beam

0 comments on commit 9902734

Please sign in to comment.