Inspired by 2020's April Fools' 20w14infinite Snapshot, this mod brings endless randomly generated dimensions into Minecraft.

Fix portal tinting

+4 -7
+1 -1
common/src/main/java/net/lerariemann/infinity/block/entity/InfinityPortalBlockEntity.java
··· 202 202 return createNbt(); 203 203 } 204 204 205 - // @Override 205 + @Override 206 206 public int getTint() { 207 207 return propertyDelegate.get(0); 208 208 }
+1 -2
common/src/main/java/net/lerariemann/infinity/util/InfinityMethods.java
··· 186 186 if (world != null && pos != null) { 187 187 BlockEntity blockEntity = world.getBlockEntity(pos); 188 188 if (blockEntity instanceof InfinityPortalBlockEntity be) { 189 - Object j = be.getRenderData(); 190 - if (j == null) return 0; 189 + Object j = be.getTint(); 191 190 return (int)j & 0xFFFFFF; 192 191 } 193 192 }
+2 -4
common/src/main/java/net/lerariemann/infinity/util/PlatformMethods.java
··· 113 113 if (world != null && pos != null) { 114 114 BlockEntity blockEntity = world.getBlockEntity(pos); 115 115 if (blockEntity instanceof InfinityPortalBlockEntity be) { 116 - Object j = be.getRenderData(); 117 - if (j == null) return 0; 116 + Object j = be.getTint(); 118 117 return (int)j & 0xFFFFFF; 119 118 } 120 119 } ··· 125 124 if (world != null && pos != null) { 126 125 BlockEntity blockEntity = world.getBlockEntity(pos); 127 126 if (blockEntity instanceof BiomeBottleBlockEntity be) { 128 - Object j = be.getRenderData(); 129 - if (j == null) return 0; 127 + Object j = be.getTint(); 130 128 return (int)j & 0xFFFFFF; 131 129 } 132 130 }