BlockProperties - 1.13 Swimming (New Blocks)
Add the flags to new blocks and allow swimming through the new blocks
This commit is contained in:
parent
ca6570f80b
commit
a861716f9a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue