Skip to content

Commit

Permalink
Desperate times; Desperate measures
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskarth committed Jul 13, 2024
1 parent e048e9e commit f8dd887
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ yarn_mappings=1.21+build.2
loader_version=0.15.11

# Mod Properties
mod_version=0.5.2
mod_version=0.5.3
maven_group=net.modfest
archives_base_name=fireblanket

Expand Down
17 changes: 16 additions & 1 deletion src/main/java/net/modfest/fireblanket/Fireblanket.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,22 @@ public void onInitialize() {
ServerEntityWorldChangeEvents.AFTER_PLAYER_CHANGE_WORLD.register((player, origin, destination) -> {
fullRegionSync(player.getServerWorld(), player.networkHandler::sendPacket);
});


Runnable desperateMeasures = () -> {
while (true) {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {

}

System.gc();
}
};

Thread desperateTimes = new Thread(desperateMeasures);

desperateTimes.start();
}

public static void fullRegionSync(ServerWorld world, Consumer<Packet<?>> sender) {
Expand Down

0 comments on commit f8dd887

Please sign in to comment.