mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-05 20:06:30 +01:00
Fix desync of FilteringBehaviour
This commit is contained in:
parent
8f7945ff4e
commit
b958be0712
1 changed files with 3 additions and 3 deletions
|
@ -75,12 +75,12 @@ public class FilteringHandler {
|
||||||
|
|
||||||
if (event.getSide() != LogicalSide.CLIENT) {
|
if (event.getSide() != LogicalSide.CLIENT) {
|
||||||
if (!player.isCreative()) {
|
if (!player.isCreative()) {
|
||||||
if (behaviour.getFilter()
|
|
||||||
.getItem() instanceof FilterItem)
|
|
||||||
player.inventory.placeItemBackInInventory(world, behaviour.getFilter());
|
|
||||||
if (toApply.getItem() instanceof FilterItem)
|
if (toApply.getItem() instanceof FilterItem)
|
||||||
player.getHeldItem(hand)
|
player.getHeldItem(hand)
|
||||||
.shrink(1);
|
.shrink(1);
|
||||||
|
if (behaviour.getFilter()
|
||||||
|
.getItem() instanceof FilterItem)
|
||||||
|
player.inventory.placeItemBackInInventory(world, behaviour.getFilter());
|
||||||
}
|
}
|
||||||
if (toApply.getItem() instanceof FilterItem)
|
if (toApply.getItem() instanceof FilterItem)
|
||||||
toApply.setCount(1);
|
toApply.setCount(1);
|
||||||
|
|
Loading…
Reference in a new issue