tangled
alpha
login
or
join now
codexarchonic.nekoweb.org
/
ProjectInfinity
0
fork
atom
Inspired by 2020's April Fools' 20w14infinite Snapshot, this mod brings endless randomly generated dimensions into Minecraft.
0
fork
atom
overview
issues
6
pulls
pipelines
Fix portal tinting
cassian.cc
1 year ago
00e628e2
c2db5905
+4
-7
3 changed files
expand all
collapse all
unified
split
common
src
main
java
net
lerariemann
infinity
block
entity
InfinityPortalBlockEntity.java
util
InfinityMethods.java
PlatformMethods.java
+1
-1
common/src/main/java/net/lerariemann/infinity/block/entity/InfinityPortalBlockEntity.java
···
202
202
return createNbt();
203
203
}
204
204
205
205
-
// @Override
205
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
189
-
Object j = be.getRenderData();
190
190
-
if (j == null) return 0;
189
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
116
-
Object j = be.getRenderData();
117
117
-
if (j == null) return 0;
116
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
128
-
Object j = be.getRenderData();
129
129
-
if (j == null) return 0;
127
127
+
Object j = be.getTint();
130
128
return (int)j & 0xFFFFFF;
131
129
}
132
130
}