mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-27 05:18:08 +01:00
Added render deactivation before initialising the new one
Then, in the event that the schematic isn't deployed, and the renderers don't get reset, the existing structure wont stay
This commit is contained in:
parent
f551107e6d
commit
969b226a00
1 changed files with 4 additions and 2 deletions
|
@ -112,8 +112,10 @@ public class SchematicHandler {
|
|||
|
||||
if (!active || !stack.getTag()
|
||||
.getString("File")
|
||||
.equals(displayedSchematic))
|
||||
.equals(displayedSchematic)) {
|
||||
renderers.forEach(r -> r.setActive(false));
|
||||
init(player, stack);
|
||||
}
|
||||
if (!active)
|
||||
return;
|
||||
|
||||
|
@ -160,7 +162,7 @@ public class SchematicHandler {
|
|||
BlockPos pos;
|
||||
|
||||
pos = BlockPos.ZERO;
|
||||
|
||||
|
||||
try {
|
||||
schematic.placeInWorld(w, pos, pos, placementSettings, w.getRandom(), Block.UPDATE_CLIENTS);
|
||||
} catch (Exception e) {
|
||||
|
|
Loading…
Reference in a new issue