mirror of
https://github.com/Oth3r/Sit.git
synced 2025-09-19 16:03:22 +02:00
removed old duplicate code
This commit is contained in:
parent
582a71d213
commit
811e2cb89a
1 changed files with 0 additions and 17 deletions
|
@ -232,23 +232,6 @@ public class Events {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (ServerPlayerEntity player:checkPlayers.keySet()) {
|
||||
int i = checkPlayers.get(player);
|
||||
checkPlayers.put(player,i-1);
|
||||
if (i<0) {
|
||||
checkPlayers.remove(player);
|
||||
continue;
|
||||
}
|
||||
if (player.getVehicle() != null) {
|
||||
Entity entity = player.getVehicle();
|
||||
if (entity.getName().getString().equals(Sit.ENTITY_NAME)) {
|
||||
setEntity(player.getBlockPos().add(0,1,0),player.getServerWorld(),entity);
|
||||
entities.put(player,entity);
|
||||
checkPlayers.remove(player);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue