Skip to content

Commit

Permalink
fix: fabricated gate pick-block not working after world reload
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTJP committed May 10, 2024
1 parent af30355 commit c5d9154
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public boolean preparePlacement(MultipartPlaceContext context) {
@Override
public void save(CompoundTag tag) {
super.save(tag);
tag.put("item_stack", itemStackTag);
tag.putString("ic_name", icName);
tag.putLong("sim_time", level().getGameTime() - simulationTimeStart);
tag.putInt("compile_format", compileFormat);
Expand All @@ -76,6 +77,7 @@ public void save(CompoundTag tag) {
@Override
public void load(CompoundTag tag) {
super.load(tag);
itemStackTag = tag.getCompound("item_stack");
icName = tag.getString("ic_name");
simulationTimeStart = tag.getLong("sim_time");
compileFormat = tag.getInt("compile_format");
Expand Down

0 comments on commit c5d9154

Please sign in to comment.