Skip to content

Commit d68216e

Browse files
committed
Update to 1.21
Update Addon to Support this pull request : Slimefun/Slimefun4#4248 We will need to change the build.gradle.kts at the end, when there will be an update for 1.21
1 parent 2f084d0 commit d68216e

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ repositories {
1616

1717
dependencies {
1818
compileOnly("io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT")
19-
compileOnly("com.github.Slimefun:Slimefun4:RC-37")
19+
compileOnly("com.github.slimefun:Slimefun:4.9-UNOFFICIAL")
2020
implementation("org.bstats:bstats-bukkit:3.0.3")
2121
implementation("com.google.code.findbugs:jsr305:3.0.2")
2222
implementation("net.guizhanss:guizhanlib-all:2.2.0-SNAPSHOT")

src/main/java/io/github/thebusybiscuit/mobcapturer/items/MobPellet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class MobPellet extends SimpleSlimefunItem<ItemUseHandler> implements Not
2323

2424
@ParametersAreNonnullByDefault
2525
public MobPellet(ItemGroup itemGroup, SlimefunItemStack item, RecipeType recipeType, ItemStack[] recipe) {
26-
super(itemGroup, item, recipeType, recipe, new CustomItemStack(item, 2));
26+
super(itemGroup, item, recipeType, recipe, CustomItemStack.create(item, 2));
2727
}
2828

2929
@Nonnull

src/main/java/io/github/thebusybiscuit/mobcapturer/setup/ItemGroups.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ public final class ItemGroups {
3232
public static final SubItemGroup TOOLS = new SubItemGroup(
3333
new NamespacedKey(MobCapturer.getInstance(), "tools"),
3434
MAIN,
35-
new CustomItemStack(
35+
CustomItemStack.create(
3636
ItemStacks.MOB_CANNON,
3737
"&dTools"
3838
)
3939
);
4040
public static final SubItemGroup MOB_EGGS = new SubItemGroup(
4141
new NamespacedKey(MobCapturer.getInstance(), "mob_eggs"),
4242
MAIN,
43-
new CustomItemStack(
43+
CustomItemStack.create(
4444
Material.CHICKEN_SPAWN_EGG,
4545
"&aMob Eggs"
4646
)

src/main/java/io/github/thebusybiscuit/mobcapturer/setup/RecipeTypes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public final class RecipeTypes {
2020
// @formatter:off
2121
public static final RecipeType MOB_CAPTURING = new RecipeType(
2222
new NamespacedKey(MobCapturer.getInstance(), "mob_capturing"),
23-
new CustomItemStack(
23+
CustomItemStack.create(
2424
ItemStacks.MOB_CANNON,
2525
"&6Mob Capturing Cannon",
2626
"&7Use a &6Mob Capturing Cannon",

src/main/java/io/github/thebusybiscuit/mobcapturer/setup/Setup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ private static <T extends LivingEntity> void registerMob(EntityType type, MobAda
376376
RecipeTypes.MOB_CAPTURING,
377377
new ItemStack[] {
378378
null, null, null,
379-
null, new CustomItemStack(SlimefunUtils.getCustomHead(eggTexture), ChatColor.WHITE + name), null,
379+
null, CustomItemStack.create(SlimefunUtils.getCustomHead(eggTexture), ChatColor.WHITE + name), null,
380380
null, null, null
381381
}
382382
);

0 commit comments

Comments
 (0)