Skip to content

Instantly share code, notes, and snippets.

@Leejjon
Leejjon / texturesInScene2dgame.md
Last active May 11, 2023 21:35
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 () {

@egg82
egg82 / list.md
Last active June 7, 2022 03:45
Bukkit server guide & plugin list
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;
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
@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