Skip to content

Commit

Permalink
保存时让CS-CoreLib构造物品栏
Browse files Browse the repository at this point in the history
Co-authored-by: NoRainCity <starwishsama@outlook.com>
  • Loading branch information
JWJUN233233 and StarWishsama committed Apr 25, 2024
1 parent c17664a commit 962b8ee
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public void save(Location l) {
return;
}

// To force CS-CoreLib to build the Inventory
this.getContents();
SlimefunBlockData blockData = StorageCacheUtils.getBlock(location);
Slimefun.getDatabaseManager().getBlockDataController().saveBlockInventory(blockData);

Expand Down

0 comments on commit 962b8ee

Please sign in to comment.