Skip to content

Commit

Permalink
Fix #12, thanks to SirSandwich and AlcatrazEscapee for pointers!
Browse files Browse the repository at this point in the history
Bump version
  • Loading branch information
Gaelmare committed May 15, 2021
1 parent 047a13f commit 9016b8b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
modGroup=org.labellum.mc
modVersion=1.8
modVersion=1.9
modBaseName=waterflasks
forgeVersion=1.12.2-14.23.5.2847
mcpVersion=stable_39
2 changes: 1 addition & 1 deletion src/main/java/org/labellum/mc/waterflasks/Waterflasks.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class Waterflasks {

public static final String MOD_ID = "waterflasks";
public static final String MOD_NAME = "WaterFlasks";
public static final String VERSION = "1.7";
public static final String VERSION = "1.9";
public static final String DEPENDENCIES = "required-after:" + TerraFirmaCraft.MOD_ID +
"@[" + "1.0.0.127" + ",)";

Expand Down
7 changes: 7 additions & 0 deletions src/main/java/org/labellum/mc/waterflasks/item/ItemFlask.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ public ItemFlask(String name, int CAPACITY, int DRINK) {
setHasSubtypes(true);
}

// Fix #12 by actually implementing the MC function that limits stack sizes
@Override
public int getItemStackLimit(ItemStack stack)
{
return getStackSize(stack);
}

@Nonnull
@Override
public Size getSize(@Nonnull ItemStack stack)
Expand Down

0 comments on commit 9016b8b

Please sign in to comment.