Skip to content
This repository was archived by the owner on Feb 2, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ public static void tryOpenGrid(@Nonnull ItemStack itemStack, @Nonnull Player pla

public static void openGrid(@Nonnull Location location, @Nonnull Player player) {
SlimefunBlockData blockData = StorageCacheUtils.getBlock(location);

if (blockData == null) {
player.sendMessage(Theme.ERROR + "无法找到绑定的网格");
return;
}

StorageCacheUtils.executeAfterLoad(blockData, () -> {
if (SlimefunItem.getById(blockData.getSfId()) instanceof NetworkGrid
&& Slimefun.getProtectionManager().hasPermission(player, location, Interaction.INTERACT_BLOCK)) {
Expand Down