mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-11 11:49:12 +00:00
Fix light blocks being considering solid (#4601)
This commit is contained in:
parent
e43f06bfa6
commit
6994005a5f
1 changed files with 6 additions and 0 deletions
|
@ -30,6 +30,7 @@ public final class LocationUtil {
|
|||
private static final Set<Material> LAVA_TYPES = EnumUtil.getAllMatching(Material.class,
|
||||
"FLOWING_LAVA", "LAVA", "STATIONARY_LAVA");
|
||||
private static final Material PORTAL = EnumUtil.getMaterial("NETHER_PORTAL", "PORTAL");
|
||||
private static final Material LIGHT = EnumUtil.getMaterial("LIGHT");
|
||||
// The player can stand inside these materials
|
||||
private static final Set<Material> HOLLOW_MATERIALS = EnumSet.noneOf(Material.class);
|
||||
private static final Set<Material> TRANSPARENT_MATERIALS = EnumSet.noneOf(Material.class);
|
||||
|
@ -47,6 +48,11 @@ public final class LocationUtil {
|
|||
|
||||
// Barrier is transparent, but solid
|
||||
HOLLOW_MATERIALS.remove(Material.BARRIER);
|
||||
|
||||
// Light blocks can be passed through and are not considered transparent for some reason
|
||||
if (LIGHT != null) {
|
||||
HOLLOW_MATERIALS.add(LIGHT);
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
|
|
Loading…
Reference in a new issue