2019-03-24 10:30:57 +01:00
|
|
|
package com.minelittlepony.client.settings;
|
|
|
|
|
2019-06-05 14:54:38 +02:00
|
|
|
import net.minecraft.client.MinecraftClient;
|
|
|
|
import net.minecraft.entity.player.PlayerEntity;
|
|
|
|
|
2019-05-30 21:24:57 +02:00
|
|
|
import com.minelittlepony.client.render.entities.MobRenderers;
|
2019-03-24 10:30:57 +01:00
|
|
|
import com.minelittlepony.settings.PonyConfig;
|
|
|
|
|
2019-05-28 01:50:45 +02:00
|
|
|
public class ClientPonyConfig extends PonyConfig {
|
2019-03-24 10:30:57 +01:00
|
|
|
|
2019-05-30 21:24:57 +02:00
|
|
|
public ClientPonyConfig() {
|
|
|
|
initWith(MobRenderers.values());
|
|
|
|
}
|
|
|
|
|
2019-06-05 14:54:38 +02:00
|
|
|
@Override
|
|
|
|
public void save() {
|
|
|
|
super.save();
|
|
|
|
PlayerEntity player = MinecraftClient.getInstance().player;
|
|
|
|
if (player != null) {
|
2019-06-27 19:28:21 +02:00
|
|
|
player.calculateDimensions();
|
2019-06-05 14:54:38 +02:00
|
|
|
}
|
|
|
|
}
|
2019-03-24 10:30:57 +01:00
|
|
|
}
|