Skip to content

Commit

Permalink
Fixed passing wrong variables in DesignManagerDirector
Browse files Browse the repository at this point in the history
  • Loading branch information
anjoismysign committed Jun 16, 2023
1 parent 05cf1f3 commit 233b51c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions buildNumber.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#maven.buildNumber.plugin properties file
#Wed Jun 14 16:23:33 CST 2023
buildNumber0=130
#Fri Jun 16 10:07:46 CST 2023
buildNumber0=132
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ public DesignManagerDirector(BlobDesign plugin) {
addManager("InventoryManager", new InventoryManager(this));
addManager("ListenerManager", new ListenerManager(this));
addDirector("BlockDisplay", file ->
DesignProxier.PROXY(BlockDisplayPresetAsset.fromFile(file, plugin)));
DesignProxier.PROXY(BlockDisplayPresetAsset.fromFile(file, this)));
getBlockDisplayAssetDirector().getBuilderManager()
.setBuilderBiFunction((uuid, objectDirector) ->
BlockDisplayBuilder.build(uuid, objectDirector,
this));
getBlockDisplayAssetDirector().whenObjectManagerFilesLoad(blockDisplayAssetObjectManager -> {
addDirector("ItemDisplay", file -> DesignProxier
.PROXY(ItemDisplayPresetAsset.fromFile(file, plugin)));
.PROXY(ItemDisplayPresetAsset.fromFile(file, this)));
getItemDisplayAssetDirector().getBuilderManager()
.setBuilderBiFunction((uuid, objectDirector) ->
ItemDisplayBuilder.build(uuid, objectDirector,
Expand All @@ -62,9 +62,7 @@ public void reload() {
getBlockDisplayAssetDirector().reload();
getBlockDisplayAssetDirector().whenObjectManagerFilesLoad(blockDisplayAssetObjectManager -> {
getItemDisplayAssetDirector().reload();
getItemDisplayAssetDirector().whenObjectManagerFilesLoad(itemDisplayAssetObjectManager -> {
getDisplayElementAssetDirector().reload();
});
getItemDisplayAssetDirector().whenObjectManagerFilesLoad(itemDisplayAssetObjectManager -> getDisplayElementAssetDirector().reload());
});
}

Expand Down

0 comments on commit 233b51c

Please sign in to comment.