mirror of
https://gitlab.com/SamB440/rpgregions-2.git
synced 2025-12-27 02:39:07 +00:00
potential-fix: items in hotbar not being detected in ItemRequirement
This commit is contained in:
@@ -34,9 +34,6 @@ tasks.shadowJar {
|
||||
relocate("net.wesjd", "net.islandearth.rpgregions.libs.anvilgui")
|
||||
}
|
||||
|
||||
java.targetCompatibility = JavaVersion.VERSION_16
|
||||
java.sourceCompatibility = JavaVersion.VERSION_16
|
||||
|
||||
allprojects {
|
||||
//tasks.withType(JavaCompile).configureEach {
|
||||
// ensure that the encoding is set to UTF-8, no matter what the system default is
|
||||
|
||||
@@ -15,7 +15,7 @@ import net.minecraft.world.level.levelgen.WorldGenStage;
|
||||
public class BiomeBaseWrapper_1_17R1 implements Biome {
|
||||
|
||||
private String fogColor, waterColor, waterFogColor, skyColor;
|
||||
private String grassColor,foliageColor;
|
||||
private String grassColor, foliageColor;
|
||||
|
||||
@Override
|
||||
public BiomeBase build(String fogColor, String waterColor, String waterFogColor, String skyColor) {
|
||||
|
||||
@@ -27,7 +27,7 @@ public class ItemRequirement extends RegionRequirement {
|
||||
@Override
|
||||
public boolean meetsRequirements(Player player) {
|
||||
boolean hasItem = false;
|
||||
for (ItemStack content : player.getInventory().getContents()) {
|
||||
for (ItemStack content : player.getInventory()) {
|
||||
if (content.isSimilar(itemStack)) {
|
||||
hasItem = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user