mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +01:00
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:
parent
d93fdaf995
commit
f317b987f1
2 changed files with 2 additions and 4 deletions
|
@ -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();
|
return StackUtil.getNull();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -126,9 +126,7 @@ public class TileEntityFarmer extends TileEntityInventoryBase implements IFarmer
|
||||||
|
|
||||||
for(IFarmerBehavior behavior : SORTED_FARMER_BEHAVIORS){
|
for(IFarmerBehavior behavior : SORTED_FARMER_BEHAVIORS){
|
||||||
FarmerResult harvestResult = behavior.tryHarvestPlant(this.world, query, this);
|
FarmerResult harvestResult = behavior.tryHarvestPlant(this.world, query, this);
|
||||||
if(harvestResult == FarmerResult.SUCCESS || harvestResult == FarmerResult.STOP_PROCESSING){
|
if(harvestResult == FarmerResult.STOP_PROCESSING) return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
else{
|
else{
|
||||||
for(int i = 0; i < this.slots.getSlots(); i++){
|
for(int i = 0; i < this.slots.getSlots(); i++){
|
||||||
ItemStack stack = this.slots.getStackInSlot(i);
|
ItemStack stack = this.slots.getStackInSlot(i);
|
||||||
|
|
Loading…
Reference in a new issue