File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
common/src/main/java/com/viaversion/viabackwards/protocol/v26_1to1_21_11 Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -89,9 +89,11 @@ protected void registerPackets() {
8989 // Remove new environment attributes
9090 registryDataRewriter .addHandler ("dimension_type" , (key , tag ) -> {
9191 final CompoundTag attributes = tag .getCompoundTag ("attributes" );
92- removeNamespaced (attributes , "visual/block_light_tint" );
93- removeNamespaced (attributes , "visual/night_vision_color" );
94- removeNamespaced (attributes , "visual/ambient_light_color" );
92+ if (attributes != null ) {
93+ removeNamespaced (attributes , "visual/block_light_tint" );
94+ removeNamespaced (attributes , "visual/night_vision_color" );
95+ removeNamespaced (attributes , "visual/ambient_light_color" );
96+ }
9597 });
9698
9799 // Move around entity variant names and sounds
You can’t perform that action at this time.
0 commit comments