1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

[CI skip] Some minor changes

This commit is contained in:
TheBusyBiscuit 2020-09-09 13:18:43 +02:00
parent a0d2fc3953
commit f2eeadb24b
3 changed files with 5 additions and 4 deletions

View File

@ -30,6 +30,7 @@
<sonar.organization>thebusybiscuit-github</sonar.organization> <sonar.organization>thebusybiscuit-github</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url> <sonar.host.url>https://sonarcloud.io</sonar.host.url>
<sonar.log.level>DEBUG</sonar.log.level> <sonar.log.level>DEBUG</sonar.log.level>
<sonar.exclusions>src/main/java/me/mrCookieSlime/Slimefun/bstats/bukkit/Metrics.java</sonar.exclusions>
<sonar.coverage.jacoco.xmlReportPaths>target/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths> <sonar.coverage.jacoco.xmlReportPaths>target/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
</properties> </properties>

View File

@ -8,6 +8,7 @@ import org.bukkit.Effect;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.Sound; import org.bukkit.Sound;
import org.bukkit.Tag;
import org.bukkit.block.Block; import org.bukkit.block.Block;
import org.bukkit.block.BlockFace; import org.bukkit.block.BlockFace;
import org.bukkit.block.BlockState; import org.bukkit.block.BlockState;
@ -17,7 +18,6 @@ import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.ItemStack;
import io.github.thebusybiscuit.cscorelib2.inventory.InvUtils; import io.github.thebusybiscuit.cscorelib2.inventory.InvUtils;
import io.github.thebusybiscuit.cscorelib2.materials.MaterialCollections;
import io.github.thebusybiscuit.cscorelib2.protection.ProtectableAction; import io.github.thebusybiscuit.cscorelib2.protection.ProtectableAction;
import io.github.thebusybiscuit.cscorelib2.scheduling.TaskQueue; import io.github.thebusybiscuit.cscorelib2.scheduling.TaskQueue;
import io.github.thebusybiscuit.slimefun4.core.attributes.RecipeDisplayItem; import io.github.thebusybiscuit.slimefun4.core.attributes.RecipeDisplayItem;
@ -50,12 +50,12 @@ public class Composter extends SimpleSlimefunItem<BlockUseHandler> implements Re
private List<ItemStack> getMachineRecipes() { private List<ItemStack> getMachineRecipes() {
List<ItemStack> items = new LinkedList<>(); List<ItemStack> items = new LinkedList<>();
for (Material leave : MaterialCollections.getAllLeaves()) { for (Material leave : Tag.LEAVES.getValues()) {
items.add(new ItemStack(leave, 8)); items.add(new ItemStack(leave, 8));
items.add(new ItemStack(Material.DIRT)); items.add(new ItemStack(Material.DIRT));
} }
for (Material sapling : MaterialCollections.getAllSaplings()) { for (Material sapling : Tag.SAPLINGS.getValues()) {
items.add(new ItemStack(sapling, 8)); items.add(new ItemStack(sapling, 8));
items.add(new ItemStack(Material.DIRT)); items.add(new ItemStack(Material.DIRT));
} }

View File

@ -60,7 +60,7 @@ public class Crucible extends SimpleSlimefunItem<BlockUseHandler> implements Rec
items.add(new ItemStack(Material.TERRACOTTA, 12)); items.add(new ItemStack(Material.TERRACOTTA, 12));
items.add(new ItemStack(Material.LAVA_BUCKET)); items.add(new ItemStack(Material.LAVA_BUCKET));
for (Material leave : MaterialCollections.getAllLeaves()) { for (Material leave : Tag.LEAVES.getValues()) {
items.add(new ItemStack(leave, 16)); items.add(new ItemStack(leave, 16));
items.add(new ItemStack(Material.WATER_BUCKET)); items.add(new ItemStack(Material.WATER_BUCKET));
} }