Misc QoL changes. (#852)

* Make shift clicking out of Crates mimic vanilla

Requsted without issue created by tterrag.

* Farmer QoL improvement

Tries to replant immediately after harvesting to waste less time.
Requested without issue by Morpheus1101
This commit is contained in:
Brennan Ward 2017-07-17 08:20:53 -04:00 committed by Ellpeck
parent d93fdaf995
commit f317b987f1
2 changed files with 2 additions and 4 deletions

View file

@ -73,7 +73,7 @@ public class ContainerGiantChest extends Container{
}
}
}
else if(!this.mergeItemStack(newStack, inventoryStart, hotbarEnd+1, false)){
else if(!this.mergeItemStack(newStack, inventoryStart, hotbarEnd+1, true)){
return StackUtil.getNull();
}

View file

@ -126,9 +126,7 @@ public class TileEntityFarmer extends TileEntityInventoryBase implements IFarmer
for(IFarmerBehavior behavior : SORTED_FARMER_BEHAVIORS){
FarmerResult harvestResult = behavior.tryHarvestPlant(this.world, query, this);
if(harvestResult == FarmerResult.SUCCESS || harvestResult == FarmerResult.STOP_PROCESSING){
return;
}
if(harvestResult == FarmerResult.STOP_PROCESSING) return;
else{
for(int i = 0; i < this.slots.getSlots(); i++){
ItemStack stack = this.slots.getStackInSlot(i);