mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-03-01 13:24:41 +01:00
Merge pull request #6673 from IThundxr/mc1.20.1/fixSchematicNotDisappearing
Fix schematic visual not disappearing
This commit is contained in:
commit
a5c3fe63f0
1 changed files with 6 additions and 2 deletions
|
@ -161,7 +161,7 @@ public class SchematicHandler implements IGuiOverlay {
|
||||||
BlockPos pos;
|
BlockPos pos;
|
||||||
|
|
||||||
pos = BlockPos.ZERO;
|
pos = BlockPos.ZERO;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
schematic.placeInWorld(w, pos, pos, placementSettings, w.getRandom(), Block.UPDATE_CLIENTS);
|
schematic.placeInWorld(w, pos, pos, placementSettings, w.getRandom(), Block.UPDATE_CLIENTS);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
@ -314,8 +314,12 @@ public class SchematicHandler implements IGuiOverlay {
|
||||||
|
|
||||||
private boolean itemLost(Player player) {
|
private boolean itemLost(Player player) {
|
||||||
for (int i = 0; i < Inventory.getSelectionSize(); i++) {
|
for (int i = 0; i < Inventory.getSelectionSize(); i++) {
|
||||||
|
if (player.getInventory()
|
||||||
|
.getItem(i)
|
||||||
|
.is(activeSchematicItem.getItem()))
|
||||||
|
continue;
|
||||||
if (!ItemStack.matches(player.getInventory()
|
if (!ItemStack.matches(player.getInventory()
|
||||||
.getItem(i), activeSchematicItem))
|
.getItem(i), activeSchematicItem))
|
||||||
continue;
|
continue;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue