Switch ritual component gathering to a Consumer rather than direct list access
This commit is contained in:
parent
3a83b4ca8a
commit
b011623333
36 changed files with 121 additions and 104 deletions
|
@ -271,7 +271,7 @@ public class ClientHandler {
|
|||
double posZ = player.lastTickPosZ + (player.posZ - player.lastTickPosZ) * partialTicks;
|
||||
|
||||
List<RitualComponent> components = Lists.newArrayList();
|
||||
ritual.gatherComponents(components);
|
||||
ritual.gatherComponents(components::add);
|
||||
for (RitualComponent ritualComponent : components) {
|
||||
vX = vec3.add(ritualComponent.getOffset(direction));
|
||||
double minX = vX.getX() - posX;
|
||||
|
@ -350,7 +350,7 @@ public class ClientHandler {
|
|||
double posZ = player.lastTickPosZ + (player.posZ - player.lastTickPosZ) * partialTicks;
|
||||
|
||||
List<RitualComponent> components = Lists.newArrayList();
|
||||
ritual.gatherComponents(components);
|
||||
ritual.gatherComponents(components::add);
|
||||
for (RitualComponent ritualComponent : components) {
|
||||
vX = vec3.add(ritualComponent.getOffset(direction));
|
||||
double minX = vX.getX() - posX;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue