Skip to content

Instantly share code, notes, and snippets.

package dev.hollowcube.replay.playback;
import net.minestom.server.entity.*;
import net.minestom.server.network.packet.server.play.EntityMetaDataPacket;
import net.minestom.server.network.packet.server.play.PlayerInfoRemovePacket;
import net.minestom.server.network.packet.server.play.PlayerInfoUpdatePacket;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.ArrayList;
@ThePixelbrain
ThePixelbrain / ultimate-fix.md
Created May 15, 2023 20:53
[FTB Ultimate] Fix crash with recent Java 8 versions

The original FTB Ultimate for MC 1.4.7 crashes during startup with new versions of Java. This applies to any 1.4.7 modpack including Forestry or Railcraft. A crash might look like the following:

[SEVERE] [Railcraft] The mod Railcraft is expecting signature a0c255ac501b2749537d5824bb0f0588bf0320fa for source railcraft.jar, however there is no signature matching that description
[SEVERE] [Railcraft] Tampering Detected. Please re-download Railcraft.

Solution:

  1. Download this file, name it java.security and save it in the instances base folder (the .minecraft folder)
  2. Add the following Java argument to your game: -Djava.security.properties=java.security
1.18.1 26398
1.18.2 19615
1.12.2 15388
1.16.5 14855
Paper 1.18.1 13782
Paper 1.18.2 8481
Spigot 1.18.1 7545
1.17.1 5194
1.18 3902
Spigot 1.18.2 3252
public void updateLighting(Pos pos, Short level) {
if (pos.blockY() < 0)
return;
int section = pos.blockY() / 16;
int sectionY = pos.blockY() % 16;
int chunkX = pos.blockX() / 16;
int sectionX = pos.blockX() % 16;
@egg82
egg82 / list.md
Last active January 25, 2025 22:52
Bukkit server guide & plugin list
@Ph0enixKM
Ph0enixKM / color.cpp
Last active March 14, 2025 14:11
Cross Platform Terminal Color Output Library (Windows/Linux/Mac)
// Color Terminal Output Library
// MIT Licensed Library
// There are 6 colors:
//
// blue
// green
// cyan
// red
@Leejjon
Leejjon / texturesInScene2dgame.md
Last active October 23, 2024 03:00
How to organize your stages and textures in your libGDX game

Starting out

If you have started out to build a game with libGDX, you've were probably creating and disposing textures out like this:

public class MyGdxGame extends ApplicationAdapter {
    SpriteBatch batch;
    Texture badlogic;

    @Override

public void create () {