Small post-init change/fix
This commit is contained in:
parent
bc565577cb
commit
50fe9c2342
1 changed files with 5 additions and 5 deletions
|
@ -52,10 +52,6 @@ public class PostInitAPI {
|
||||||
* @param isClient {@code boolean}, {@code true} for client, {@code false} for server.
|
* @param isClient {@code boolean}, {@code true} for client, {@code false} for server.
|
||||||
*/
|
*/
|
||||||
public static void postInit(boolean isClient) {
|
public static void postInit(boolean isClient) {
|
||||||
if (postInitFunctions == null) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
postInitFunctions.forEach(function -> function.accept(isClient));
|
|
||||||
Registry.BLOCK.forEach(block -> {
|
Registry.BLOCK.forEach(block -> {
|
||||||
processBlockCommon(block);
|
processBlockCommon(block);
|
||||||
if (isClient) {
|
if (isClient) {
|
||||||
|
@ -67,7 +63,11 @@ public class PostInitAPI {
|
||||||
Registry.ITEM.forEach(item -> {
|
Registry.ITEM.forEach(item -> {
|
||||||
processItemCommon(item);
|
processItemCommon(item);
|
||||||
});
|
});
|
||||||
postInitFunctions = null;
|
|
||||||
|
if (postInitFunctions != null) {
|
||||||
|
postInitFunctions.forEach(function -> function.accept(isClient));
|
||||||
|
postInitFunctions = null;
|
||||||
|
}
|
||||||
blockTags = null;
|
blockTags = null;
|
||||||
itemTags = null;
|
itemTags = null;
|
||||||
BiomeAPI.loadFabricAPIBiomes();
|
BiomeAPI.loadFabricAPIBiomes();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue