Skip to content

Commit

Permalink
Fix resource gen
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEpicBlock committed Aug 13, 2022
1 parent 27efb50 commit e2002c7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ public void recheckPolys(CallbackInfoReturnable<PolyMap> cir) {
if (poly instanceof CustomBlockPoly customPoly) {
newBlockPolys.put(block, new FunctionBlockStatePoly(
block,
(state, registry) -> {
(state, isUniqueCallback) -> {
var oldClientState = customPoly.getClientBlock(state);
isUniqueCallback.set(!customPoly.toBeRechecked.containsKey(state));
if (customPoly.toBeRechecked.containsKey(state) && this.blockPolys.containsKey(oldClientState.getBlock())) {
// Recheck the client state
return this.blockPolys.get(oldClientState.getBlock()).getClientBlock(state);
Expand Down

0 comments on commit e2002c7

Please sign in to comment.