BlockProperties - 1.13 Swimming (New Blocks)

Add the flags to new blocks and allow swimming through the new blocks
This commit is contained in:
CaptainObvious0 2019-03-06 21:23:56 -06:00 committed by GitHub
parent ca6570f80b
commit a861716f9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -675,6 +675,7 @@ public class BlockProperties {
public static final long F_HEIGHT100 = f_flag();
/** Climbable like ladder and vine (allow to land on without taking damage). */
public static final long F_CLIMBABLE = f_flag();
public static final long F_CLIMBLIQ = f_flag();
/** The block can change shape. This is most likely not 100% accurate... */
public static final long F_VARIABLE = f_flag();
// /** The block has full bounds (0..1), inaccurate! */
@ -1032,6 +1033,9 @@ public class BlockProperties {
for (final Material mat : MaterialUtil.WOODEN_SLABS) {
setFlag(mat, stepFlags);
}
for (final Material mat : MaterialUtil.NEWLIQ) {
setFlag(mat, stepFlags | F_GROUND_HEIGHT | F_CLIMBABLE | F_CLIMBLIQ);
}
// Rails
for (final Material mat : MaterialUtil.RAILS) {