mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-03-04 06:44:40 +01:00
Playtest bugs
- Fixed non-effect fans resetting processed belt items - Fixed tree cutter considering scaffolding as leaves
This commit is contained in:
parent
16f4c3354d
commit
922cdfdc16
2 changed files with 6 additions and 2 deletions
|
@ -13,6 +13,7 @@ import com.simibubi.create.content.kinetics.belt.behaviour.TransportedItemStackH
|
|||
import com.simibubi.create.content.kinetics.fan.processing.AllFanProcessingTypes;
|
||||
import com.simibubi.create.content.kinetics.fan.processing.FanProcessing;
|
||||
import com.simibubi.create.content.kinetics.fan.processing.FanProcessingType;
|
||||
import com.simibubi.create.content.kinetics.fan.processing.FanProcessingTypeRegistry;
|
||||
import com.simibubi.create.foundation.advancement.AllAdvancements;
|
||||
import com.simibubi.create.foundation.blockEntity.behaviour.BlockEntityBehaviour;
|
||||
import com.simibubi.create.infrastructure.config.AllConfigs;
|
||||
|
@ -141,7 +142,9 @@ public class AirCurrent {
|
|||
TransportedItemStackHandlerBehaviour handler = pair.getKey();
|
||||
Level world = handler.getWorld();
|
||||
FanProcessingType processingType = pair.getRight();
|
||||
|
||||
if (processingType == AllFanProcessingTypes.NONE)
|
||||
continue;
|
||||
|
||||
handler.handleProcessingOnAllItems(transported -> {
|
||||
if (world.isClientSide) {
|
||||
processingType.spawnProcessingParticles(world, handler.getWorldPositionOf(transported));
|
||||
|
|
|
@ -38,6 +38,7 @@ import net.minecraft.world.level.block.KelpPlantBlock;
|
|||
import net.minecraft.world.level.block.LeavesBlock;
|
||||
import net.minecraft.world.level.block.SugarCaneBlock;
|
||||
import net.minecraft.world.level.block.state.BlockState;
|
||||
import net.minecraft.world.level.block.state.properties.BlockStateProperties;
|
||||
import net.minecraft.world.level.block.state.properties.IntegerProperty;
|
||||
import net.minecraft.world.level.block.state.properties.Property;
|
||||
|
||||
|
@ -314,7 +315,7 @@ public class TreeCutter {
|
|||
|
||||
private static boolean isLeaf(BlockState state) {
|
||||
for (Property<?> property : state.getValues().keySet())
|
||||
if (property instanceof IntegerProperty && property.getName().equals("distance"))
|
||||
if (property instanceof IntegerProperty && property.getName().equals("distance") && property != BlockStateProperties.STABILITY_DISTANCE)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue