Fix block render types not being properly applied to item entities (#6832)

This commit is contained in:
Cyborgmas 2020-06-26 09:22:57 -04:00 committed by GitHub
parent 71baebcc93
commit fa6ca9c275
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,17 @@
public static RenderType func_239221_b_(BlockState p_239221_0_) {
Block block = p_239221_0_.func_177230_c();
if (block instanceof LeavesBlock) {
@@ -317,11 +321,60 @@
@@ -295,8 +299,7 @@
}
public static RenderType func_239220_a_(BlockState p_239220_0_, boolean p_239220_1_) {
- RenderType rendertype = func_228390_a_(p_239220_0_);
- if (rendertype == RenderType.func_228645_f_()) {
+ if (canRenderInLayer(p_239220_0_, RenderType.func_228645_f_())) {
if (!Minecraft.func_238218_y_()) {
return Atlases.func_228785_j_();
} else {
@@ -317,11 +320,60 @@
}
}