Skip to content

Commit

Permalink
hmm
Browse files Browse the repository at this point in the history
  • Loading branch information
AltronMaxX committed Dec 24, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 646fb4e commit 281fc97
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugin/src/main/java/net/elytrium/limboapi/LimboAPI.java
Original file line number Diff line number Diff line change
@@ -356,6 +356,9 @@ public VirtualBlock createSimpleBlock(boolean solid, boolean air, boolean motion

@Override
public VirtualBlock createSimpleBlock(boolean solid, boolean air, boolean motionBlocking, String modernID, Map<String, String> properties) {
if (Objects.equals(modernID, "grass")) {
modernID = "short_grass";
}
return new SimpleBlock(solid, air, motionBlocking, modernID, properties);
}

Original file line number Diff line number Diff line change
@@ -303,6 +303,9 @@ public static SimpleBlock solid(boolean motionBlocking, short id) {

@NonNull
public static SimpleBlock solid(boolean motionBlocking, String modernID, short id) {
if (Objects.equals(modernID, "grass")) {
modernID = "short_grass";
}
return new SimpleBlock(true, false, motionBlocking, modernID, id);
}

@@ -323,6 +326,9 @@ public static SimpleBlock nonSolid(boolean motionBlocking, short id) {

@NonNull
public static SimpleBlock nonSolid(boolean motionBlocking, String modernID, short id) {
if (Objects.equals(modernID, "grass")) {
modernID = "short_grass";
}
return new SimpleBlock(false, false, motionBlocking, modernID, id);
}

0 comments on commit 281fc97

Please sign in to comment.