Record Canonical Constructor's not cleaned/written correctly.
LexManos opened this issue · 0 comments
LexManos commented
1.18.1, net.minecraft.world.ticks.ScheduledTick, has a canonical constructor that makes the position immutible. This causes issues with eclipe's compiler due to ambiguous constructors. {Honestly I think this is a issue in eclipse compiler but it's also an issue with us}
Current decompile
public ScheduledTick(T p_193383_, BlockPos p_193384_, long p_193385_, long p_193386_) {
this(p_193383_, p_193384_, p_193385_, TickPriority.NORMAL, p_193386_);
}
public ScheduledTick(T type, BlockPos pos, long triggerTick, TickPriority priority, long subTickOrder) {
pos = pos.immutable();
this.type = type;
this.pos = pos;
this.triggerTick = triggerTick;
this.priority = priority;
this.subTickOrder = subTickOrder;
}
Proper decompile:
public ScheduledTick(T p_193383_, BlockPos p_193384_, long p_193385_, long p_193386_) {
this(p_193383_, p_193384_, p_193385_, TickPriority.NORMAL, p_193386_);
}
public ScheduledTick {
pos = pos.immutable();
}