Archiviert
13
0

Forgot to add the target object in the ChunkPosition wrapper.

Dieser Commit ist enthalten in:
Kristian S. Stangeland 2012-12-13 00:39:50 +01:00
Ursprung 86f15c8674
Commit 79afb0bcdc

Datei anzeigen

@ -166,7 +166,8 @@ public class ChunkPosition {
if (intModifier.size() >= 3) {
try {
return new ChunkPosition(intModifier.read(0), intModifier.read(1), intModifier.read(2));
StructureModifier<Integer> instance = intModifier.withTarget(generic);
return new ChunkPosition(instance.read(0), instance.read(1), instance.read(2));
} catch (FieldAccessException e) {
// This is an exeptional work-around, so we don't want to burden the caller with the messy details
throw new RuntimeException("Field access error.", e);