-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Object Builder API classloading TexturedRenderLayers too early (#…
…4278) - This caused decorated pot pattern textures to not be initialized correctly - Now, WoodTypeMixin only manually adds textures after TexturedRenderLayers has been classloaded
- Loading branch information
1 parent
32952c4
commit e604fe7
Showing
3 changed files
with
54 additions
and
26 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...src/client/java/net/fabricmc/fabric/impl/object/builder/client/SignTypeTextureHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright (c) 2016, 2017, 2018, 2019 FabricMC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package net.fabricmc.fabric.impl.object.builder.client; | ||
|
||
import net.minecraft.block.WoodType; | ||
import net.minecraft.client.render.TexturedRenderLayers; | ||
|
||
public final class SignTypeTextureHelper { | ||
/** | ||
* Set to true after {@link TexturedRenderLayers} has been classloaded. If any new {@link WoodType}s are registered | ||
* after this point, they need to be added to the texture maps manually. Always adding textures manually classloads | ||
* {@link TexturedRenderLayers} too early, which causes issues such as decorated pot pattern textures not being | ||
* initialized correctly. | ||
*/ | ||
public static boolean shouldAddTextures = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters