mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-22 16:39:22 +00:00
56 lines
3.4 KiB
Diff
56 lines
3.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com>
|
|
Date: Tue, 24 Oct 2023 20:02:48 -0400
|
|
Subject: [PATCH] Fix casting in Purpur world config
|
|
|
|
|
|
diff --git a/src/main/java/org/purpurmc/purpur/PurpurWorldConfig.java b/src/main/java/org/purpurmc/purpur/PurpurWorldConfig.java
|
|
index 42a4684b185ad1c490715b43282a487ea8cd3d3f..8769b5b74ec14ddae8210008b84a9ca82b2aa6f1 100644
|
|
--- a/src/main/java/org/purpurmc/purpur/PurpurWorldConfig.java
|
|
+++ b/src/main/java/org/purpurmc/purpur/PurpurWorldConfig.java
|
|
@@ -678,7 +678,7 @@ public class PurpurWorldConfig {
|
|
dropsMap.forEach((itemId, chance) -> {
|
|
Item item = BuiltInRegistries.ITEM.get(new ResourceLocation(itemId.toString()));
|
|
if (item == Items.AIR) { PurpurConfig.log(Level.SEVERE, "Invalid item for `tools.axe.strippables." + blockId + ".drops`: " + itemId); return; }
|
|
- drops.put(item, (double) chance);
|
|
+ drops.put(item, (Double) chance); // Leaf - Fix casting
|
|
});
|
|
axeStrippables.put(block, new Strippable(into, drops));
|
|
});
|
|
@@ -732,7 +732,7 @@ public class PurpurWorldConfig {
|
|
dropsMap.forEach((itemId, chance) -> {
|
|
Item item = BuiltInRegistries.ITEM.get(new ResourceLocation(itemId.toString()));
|
|
if (item == Items.AIR) { PurpurConfig.log(Level.SEVERE, "Invalid item for `tools.axe.waxables." + blockId + ".drops`: " + itemId); return; }
|
|
- drops.put(item, (double) chance);
|
|
+ drops.put(item, (Double) chance); // Leaf - Fix casting
|
|
});
|
|
axeWaxables.put(block, new Waxable(into, drops));
|
|
});
|
|
@@ -777,7 +777,7 @@ public class PurpurWorldConfig {
|
|
dropsMap.forEach((itemId, chance) -> {
|
|
Item item = BuiltInRegistries.ITEM.get(new ResourceLocation(itemId.toString()));
|
|
if (item == Items.AIR) { PurpurConfig.log(Level.SEVERE, "Invalid item for `tools.axe.weatherables." + blockId + ".drops`: " + itemId); return; }
|
|
- drops.put(item, (double) chance);
|
|
+ drops.put(item, (Double) chance); // Leaf - Fix casting
|
|
});
|
|
axeWeatherables.put(block, new Weatherable(into, drops));
|
|
});
|
|
@@ -803,7 +803,7 @@ public class PurpurWorldConfig {
|
|
dropsMap.forEach((itemId, chance) -> {
|
|
Item item = BuiltInRegistries.ITEM.get(new ResourceLocation(itemId.toString()));
|
|
if (item == Items.AIR) { PurpurConfig.log(Level.SEVERE, "Invalid item for `tools.hoe.tillables." + blockId + ".drops`: " + itemId); return; }
|
|
- drops.put(item, (double) chance);
|
|
+ drops.put(item, (Double) chance); // Leaf - Fix casting
|
|
});
|
|
hoeTillables.put(block, new Tillable(condition, into, drops));
|
|
});
|
|
@@ -827,7 +827,7 @@ public class PurpurWorldConfig {
|
|
dropsMap.forEach((itemId, chance) -> {
|
|
Item item = BuiltInRegistries.ITEM.get(new ResourceLocation(itemId.toString()));
|
|
if (item == Items.AIR) { PurpurConfig.log(Level.SEVERE, "Invalid item for `tools.shovel.flattenables." + blockId + ".drops`: " + itemId); return; }
|
|
- drops.put(item, (double) chance);
|
|
+ drops.put(item, (Double) chance); // Leaf - Fix casting
|
|
});
|
|
shovelFlattenables.put(block, new Flattenable(into, drops));
|
|
});
|