9
0
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:
SamB440
2022-01-14 22:05:23 +00:00
parent 0c039b0637
commit 9424dc9386
3 changed files with 2 additions and 5 deletions

View File

@@ -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

View File

@@ -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) {

View File

@@ -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;