Bump to 1.3.2 + Fixed being able to exceed max stack size while shift clicking
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
# Refined Storage Changelog
|
||||
|
||||
### 1.3.2
|
||||
- Fixed being able to exceed max stack size while shift clicking (raoulvdberge)
|
||||
|
||||
### 1.3.1
|
||||
- Updated Forge to 2180 (raoulvdberge)
|
||||
- Made Upgrades stackable (raoulvdberge)
|
||||
|
||||
@@ -20,7 +20,7 @@ apply plugin: 'maven'
|
||||
apply plugin: 'maven-publish'
|
||||
apply plugin: 'net.minecraftforge.gradle.forge'
|
||||
|
||||
version = "1.3.1"
|
||||
version = "1.3.2"
|
||||
group = "refinedstorage"
|
||||
archivesBaseName = "refinedstorage"
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ public final class RS {
|
||||
}
|
||||
|
||||
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";
|
||||
|
||||
@SidedProxy(clientSide = "com.raoulvdberge.refinedstorage.proxy.ProxyClient", serverSide = "com.raoulvdberge.refinedstorage.proxy.ProxyCommon")
|
||||
|
||||
@@ -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)) {
|
||||
int j = itemstack.getCount() + stack.getCount();
|
||||
int max = Math.min(slot.getSlotStackLimit(), stack.getMaxStackSize());
|
||||
|
||||
if (j <= slot.getSlotStackLimit()) {
|
||||
if (j <= max) {
|
||||
stack.setCount(0);
|
||||
itemstack.setCount(j);
|
||||
slot.onSlotChanged();
|
||||
flag = true;
|
||||
} else if (itemstack.getCount() < slot.getSlotStackLimit()) {
|
||||
stack.shrink(slot.getSlotStackLimit() - itemstack.getCount());
|
||||
itemstack.setCount(slot.getSlotStackLimit());
|
||||
} else if (itemstack.getCount() < max) {
|
||||
stack.shrink(max - itemstack.getCount());
|
||||
itemstack.setCount(max);
|
||||
slot.onSlotChanged();
|
||||
flag = true;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"modid": "refinedstorage",
|
||||
"name": "Refined Storage",
|
||||
"description": "An elegant solution to your hoarding problem",
|
||||
"version": "1.3.1",
|
||||
"version": "1.3.2",
|
||||
"mcversion": "1.11",
|
||||
"url": "",
|
||||
"updateUrl": "",
|
||||
|
||||
Reference in New Issue
Block a user