Skip to content

Commit

Permalink
fix: merge follow up fix
Browse files Browse the repository at this point in the history
  • Loading branch information
StarWishsama committed Oct 20, 2024
1 parent 742acad commit 29009af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.xzavier0722.mc.plugin.slimefun4.storage.controller;

import city.norain.slimefun4.utils.InventoryUtil;
import com.xzavier0722.mc.plugin.slimefun4.storage.adapter.IDataSourceAdapter;
import com.xzavier0722.mc.plugin.slimefun4.storage.callback.IAsyncReadCallback;
import com.xzavier0722.mc.plugin.slimefun4.storage.common.DataScope;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.xzavier0722.mc.plugin.slimefun4.storage.controller.ASlimefunDataContainer;
import com.xzavier0722.mc.plugin.slimefun4.storage.controller.SlimefunBlockData;
import com.xzavier0722.mc.plugin.slimefun4.storage.controller.SlimefunUniversalData;
import io.github.bakedlibs.dough.blocks.BlockPosition;
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem;
import io.github.thebusybiscuit.slimefun4.implementation.Slimefun;
import java.util.HashSet;
Expand Down Expand Up @@ -144,7 +145,7 @@ public static void removeData(Location loc, String key) {
var uniData = getUniversalBlock(uuid);

if (uniData != null) {
uniData.setLastPresent(l);
uniData.setLastPresent(new BlockPosition(l));
}

return uniData;
Expand Down Expand Up @@ -197,7 +198,7 @@ public static void removeData(Location loc, String key) {
return null;
}

uniData.setLastPresent(l);
uniData.setLastPresent(new BlockPosition(l));

return uniData.getUniversalMenu();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.xzavier0722.mc.plugin.slimefun4.storage.controller.SlimefunUniversalData;
import com.xzavier0722.mc.plugin.slimefun4.storage.util.LocationUtils;
import com.xzavier0722.mc.plugin.slimefun4.storage.util.StorageCacheUtils;
import io.github.bakedlibs.dough.blocks.BlockPosition;
import io.github.bakedlibs.dough.chat.ChatInput;
import io.github.bakedlibs.dough.common.ChatColors;
import io.github.bakedlibs.dough.common.CommonPatterns;
Expand Down Expand Up @@ -1071,7 +1072,7 @@ protected void move(Block from, BlockFace face, Block to) {
});

from.setType(Material.AIR);
uniData.setLastPresent(to.getLocation());
uniData.setLastPresent(new BlockPosition(to.getLocation()));
uniData.getUniversalMenu().update(to.getLocation());

Slimefun.getTickerTask().enableTicker(to.getLocation(), uniData.getUUID());
Expand Down

0 comments on commit 29009af

Please sign in to comment.