Bump to 1.3.2 + Fixed being able to exceed max stack size while shift clicking

This commit is contained in:
Raoul Van den Berge
2016-12-04 03:15:45 +01:00
parent d6cf79264d
commit 9405d3f9fa
5 changed files with 11 additions and 7 deletions

View File

@@ -1,5 +1,8 @@
# Refined Storage Changelog # Refined Storage Changelog
### 1.3.2
- Fixed being able to exceed max stack size while shift clicking (raoulvdberge)
### 1.3.1 ### 1.3.1
- Updated Forge to 2180 (raoulvdberge) - Updated Forge to 2180 (raoulvdberge)
- Made Upgrades stackable (raoulvdberge) - Made Upgrades stackable (raoulvdberge)

View File

@@ -20,7 +20,7 @@ apply plugin: 'maven'
apply plugin: 'maven-publish' apply plugin: 'maven-publish'
apply plugin: 'net.minecraftforge.gradle.forge' apply plugin: 'net.minecraftforge.gradle.forge'
version = "1.3.1" version = "1.3.2"
group = "refinedstorage" group = "refinedstorage"
archivesBaseName = "refinedstorage" archivesBaseName = "refinedstorage"

View File

@@ -21,7 +21,7 @@ public final class RS {
} }
public static final String ID = "refinedstorage"; public static final String ID = "refinedstorage";
public static final String VERSION = "1.3.1"; public static final String VERSION = "1.3.2";
public static final String GUI_FACTORY = "com.raoulvdberge.refinedstorage.gui.config.ModGuiFactory"; public static final String GUI_FACTORY = "com.raoulvdberge.refinedstorage.gui.config.ModGuiFactory";
@SidedProxy(clientSide = "com.raoulvdberge.refinedstorage.proxy.ProxyClient", serverSide = "com.raoulvdberge.refinedstorage.proxy.ProxyCommon") @SidedProxy(clientSide = "com.raoulvdberge.refinedstorage.proxy.ProxyClient", serverSide = "com.raoulvdberge.refinedstorage.proxy.ProxyCommon")

View File

@@ -55,15 +55,16 @@ public abstract class ContainerBase extends Container {
if (!itemstack.isEmpty() && itemstack.getItem() == stack.getItem() && (!stack.getHasSubtypes() || stack.getMetadata() == itemstack.getMetadata()) && ItemStack.areItemStackTagsEqual(stack, itemstack)) { if (!itemstack.isEmpty() && itemstack.getItem() == stack.getItem() && (!stack.getHasSubtypes() || stack.getMetadata() == itemstack.getMetadata()) && ItemStack.areItemStackTagsEqual(stack, itemstack)) {
int j = itemstack.getCount() + stack.getCount(); int j = itemstack.getCount() + stack.getCount();
int max = Math.min(slot.getSlotStackLimit(), stack.getMaxStackSize());
if (j <= slot.getSlotStackLimit()) { if (j <= max) {
stack.setCount(0); stack.setCount(0);
itemstack.setCount(j); itemstack.setCount(j);
slot.onSlotChanged(); slot.onSlotChanged();
flag = true; flag = true;
} else if (itemstack.getCount() < slot.getSlotStackLimit()) { } else if (itemstack.getCount() < max) {
stack.shrink(slot.getSlotStackLimit() - itemstack.getCount()); stack.shrink(max - itemstack.getCount());
itemstack.setCount(slot.getSlotStackLimit()); itemstack.setCount(max);
slot.onSlotChanged(); slot.onSlotChanged();
flag = true; flag = true;
} }

View File

@@ -3,7 +3,7 @@
"modid": "refinedstorage", "modid": "refinedstorage",
"name": "Refined Storage", "name": "Refined Storage",
"description": "An elegant solution to your hoarding problem", "description": "An elegant solution to your hoarding problem",
"version": "1.3.1", "version": "1.3.2",
"mcversion": "1.11", "mcversion": "1.11",
"url": "", "url": "",
"updateUrl": "", "updateUrl": "",