Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // completel untested lolol
- // should work
- // storing world as a key is alright, as long as the vec pools are disable and enabled correctly
- private static final TObjectIntHashMap<World> disabledVecPools = new TObjectIntHashMap<World>(64, 0.75f, -1);
- public static void disableVecPool(World world) {
- if (disabledVecPools.containsKey(world)) {
- return;
- }
- disabledVecPools.put(world, world.func_82732_R().field_72346_f);
- world.func_82732_R().field_72346_f = 0;
- }
- public static void enableVecPool(World world) {
- if (disabledVecPools.containsKey(world)) {
- world.func_82732_R().field_72346_f = disabledVecPools.remove(world);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement