Fix ClientBlockDetailMap.getBlockStateData not passing the BlockPos

Thanks Builderb0y
This commit is contained in:
James Seibel
2023-08-14 22:01:03 -05:00
parent f564755d66
commit 0935a6e94b
@@ -16,7 +16,7 @@ public class ClientBlockDetailMap
public ClientBlockStateCache getBlockStateData(BlockState state, DhBlockPos pos)
{ //TODO: Allow a per pos unique setting
return blockCache.computeIfAbsent(state, (s) -> new ClientBlockStateCache(s, level, new DhBlockPos(0, 0, 0)));
return blockCache.computeIfAbsent(state, (s) -> new ClientBlockStateCache(s, level, pos));
}
public void clear() { blockCache.clear(); }