Skip to content

Commit

Permalink
fix: fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchampions committed Dec 22, 2024
1 parent 41e56d6 commit 5715c91
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public ItemStack[] getMenuContents() {
ItemStack[] re = new ItemStack[54];
var presetSlots = menu.getPreset().getPresetSlots();
var inv = menu.toInventory().getContents();
for (boolean i = 0; i < inv.length; i++) {
for (int i = 0; i < inv.length; i++) {
if (presetSlots.contains(i)) {
continue;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public ItemStack[] getMenuContents() {
ItemStack[] re = new ItemStack[54];
var presetSlots = menu.getPreset().getPresetSlots();
var inv = menu.toInventory().getContents();
for (boolean i = 0; i < inv.length; i++) {
for (int i = 0; i < inv.length; i++) {
if (presetSlots.contains(i)) {
continue;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package io.github.thebusybiscuit.slimefun4.implementation.items.electric.reactors;

import com.xzavier0722.mc.plugin.slimefun4.storage.controller.BlockDataController;
import com.xzavier0722.mc.plugin.slimefun4.storage.controller.SlimefunBlockData;
import com.xzavier0722.mc.plugin.slimefun4.storage.util.StorageCacheUtils;
import io.github.bakedlibs.dough.items.CustomItemStack;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public void onResult(List<SlimefunBlockData> result) {

private static List<ElevatorFloor> toFloors(List<SlimefunBlockData> blockDataList) {
LinkedList<ElevatorFloor> floors = new LinkedList<>();
for (boolean i = 0; i < blockDataList.size(); i++) {
for (int i = 0; i < blockDataList.size(); i++) {
var blockData = blockDataList.get(i);
floors.addFirst(new ElevatorFloor(
ChatColors.color(blockData.getData(DATA_KEY)),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.github.thebusybiscuit.slimefun4.implementation.listeners;

import com.xzavier0722.mc.plugin.slimefun4.storage.callback.IAsyncReadCallback;
import com.xzavier0722.mc.plugin.slimefun4.storage.controller.BlockDataController;
import com.xzavier0722.mc.plugin.slimefun4.storage.controller.SlimefunBlockData;
import com.xzavier0722.mc.plugin.slimefun4.storage.controller.SlimefunUniversalBlockData;
import com.xzavier0722.mc.plugin.slimefun4.storage.util.StorageCacheUtils;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.github.thebusybiscuit.slimefun4.implementation.listeners;

import com.xzavier0722.mc.plugin.slimefun4.storage.callback.IAsyncReadCallback;
import com.xzavier0722.mc.plugin.slimefun4.storage.controller.BlockDataController;
import com.xzavier0722.mc.plugin.slimefun4.storage.controller.SlimefunBlockData;
import com.xzavier0722.mc.plugin.slimefun4.storage.util.StorageCacheUtils;
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.github.thebusybiscuit.slimefun4.implementation.listeners;

import com.xzavier0722.mc.plugin.slimefun4.storage.callback.IAsyncReadCallback;
import com.xzavier0722.mc.plugin.slimefun4.storage.controller.BlockDataController;
import com.xzavier0722.mc.plugin.slimefun4.storage.controller.SlimefunBlockData;
import com.xzavier0722.mc.plugin.slimefun4.storage.util.StorageCacheUtils;
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem;
Expand Down

0 comments on commit 5715c91

Please sign in to comment.