Skip to content

Commit

Permalink
Merge pull request #100 from JWJUN233233/master
Browse files Browse the repository at this point in the history
fix #99
  • Loading branch information
shixinzia authored Mar 9, 2024
2 parents 2e809b2 + 08285f4 commit 05d3887
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.xzavier0722.mc.plugin.slimefun4.storage.util.StorageCacheUtils;
import io.github.sefiraat.networks.NetworkStorage;
import io.github.sefiraat.networks.Networks;
import io.github.sefiraat.networks.slimefun.network.NetworkController;
import io.github.sefiraat.networks.slimefun.network.NetworkPowerNode;
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem;
import io.github.thebusybiscuit.slimefun4.implementation.Slimefun;
Expand Down Expand Up @@ -126,6 +127,8 @@ private void killAdditionalController(@Nonnull Location location) {
BukkitRunnable runnable = new BukkitRunnable() {
@Override
public void run() {
//fix #99
NetworkController.wipeNetwork(location);
location.getWorld().dropItemNaturally(location, sfItem.getItem());
location.getBlock().setType(Material.AIR);
}
Expand Down

0 comments on commit 05d3887

Please sign in to comment.