mirror of
https://github.com/Oth3r/Sit.git
synced 2025-09-20 00:13:21 +02:00
todo cleanup
This commit is contained in:
parent
31496a17d1
commit
81f8cf6244
3 changed files with 3 additions and 3 deletions
|
@ -58,7 +58,7 @@ public class ConfigScreen extends Screen {
|
||||||
@Override
|
@Override
|
||||||
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
|
public void render(DrawContext context, int mouseX, int mouseY, float delta) {
|
||||||
super.render(context, mouseX, mouseY, delta);
|
super.render(context, mouseX, mouseY, delta);
|
||||||
//todo fade?
|
// todo fade in like the title screen on first load?
|
||||||
renderBanner(context,width/2 - 64,this.height / 4 -38,1);
|
renderBanner(context,width/2 - 64,this.height / 4 -38,1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,6 @@ public class LoopManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
// get the player's sit entity when they join
|
// get the player's sit entity when they join
|
||||||
// todo make it so it updates the sitting height and pos based on the block so if it changed while offline it still works (or if stair changes shape)
|
|
||||||
HashMap<ServerPlayerEntity, Integer> checkPlayers = Data.getCheckPlayers();
|
HashMap<ServerPlayerEntity, Integer> checkPlayers = Data.getCheckPlayers();
|
||||||
for (ServerPlayerEntity player : checkPlayers.keySet()) {
|
for (ServerPlayerEntity player : checkPlayers.keySet()) {
|
||||||
Integer time = checkPlayers.get(player);
|
Integer time = checkPlayers.get(player);
|
||||||
|
|
|
@ -315,7 +315,8 @@ public class Utl {
|
||||||
* removes all sit entities loaded on the server
|
* removes all sit entities loaded on the server
|
||||||
*/
|
*/
|
||||||
public static void purge(ServerPlayerEntity player, boolean message) {
|
public static void purge(ServerPlayerEntity player, boolean message) {
|
||||||
// todo test if it can purge an entity from a disconnected player or unloaded chunks
|
/// FYI it cant purge an entity from a disconnected player or unloaded chunks
|
||||||
|
|
||||||
// get a list of sit entities
|
// get a list of sit entities
|
||||||
List<? extends DisplayEntity.TextDisplayEntity> list = player.getServerWorld()
|
List<? extends DisplayEntity.TextDisplayEntity> list = player.getServerWorld()
|
||||||
.getEntitiesByType(TypeFilter.instanceOf(DisplayEntity.TextDisplayEntity.class),
|
.getEntitiesByType(TypeFilter.instanceOf(DisplayEntity.TextDisplayEntity.class),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue