修复了集装箱放置失败时消耗物品的问题
This commit is contained in:
parent
1a638dc7e0
commit
5d6f63c9de
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ public class ContainerBlockItem extends BlockItem implements GeoItem {
|
||||||
Player player = pContext.getPlayer();
|
Player player = pContext.getPlayer();
|
||||||
if (player != null) {
|
if (player != null) {
|
||||||
var tag = BlockItem.getBlockEntityData(stack);
|
var tag = BlockItem.getBlockEntityData(stack);
|
||||||
if (tag != null && tag.get("Entity") != null) {
|
if (tag != null && tag.get("Entity") != null && pContext.canPlace()) {
|
||||||
player.getInventory().removeItem(stack);
|
player.getInventory().removeItem(stack);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue