Move DWorld -> DummyWorld

This commit is contained in:
Sollace 2018-07-11 20:53:26 +02:00
parent ff690af493
commit 910dbd43c0
2 changed files with 4 additions and 5 deletions

View file

@ -1,4 +1,4 @@
package com.sollace.dummy; package com.voxelmodpack.hdskins.gui;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;
import net.minecraft.world.GameType; import net.minecraft.world.GameType;
@ -9,9 +9,9 @@ import net.minecraft.world.WorldType;
import net.minecraft.world.chunk.IChunkProvider; import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.storage.WorldInfo; import net.minecraft.world.storage.WorldInfo;
public class DWorld extends World { public class DummyWorld extends World {
public DWorld() { public DummyWorld() {
super(null, new WorldInfo( super(null, new WorldInfo(
new WorldSettings(0, GameType.NOT_SET, false, false, WorldType.DEFAULT), "MpServer"), new WorldSettings(0, GameType.NOT_SET, false, false, WorldType.DEFAULT), "MpServer"),
new WorldProviderSurface(), null, true); new WorldProviderSurface(), null, true);

View file

@ -4,7 +4,6 @@ import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps; import com.google.common.collect.Maps;
import com.mojang.authlib.GameProfile; import com.mojang.authlib.GameProfile;
import com.mojang.authlib.minecraft.MinecraftProfileTexture.Type; import com.mojang.authlib.minecraft.MinecraftProfileTexture.Type;
import com.sollace.dummy.DWorld;
import com.voxelmodpack.hdskins.DynamicTextureImage; import com.voxelmodpack.hdskins.DynamicTextureImage;
import com.voxelmodpack.hdskins.HDSkinManager; import com.voxelmodpack.hdskins.HDSkinManager;
import com.voxelmodpack.hdskins.ImageBufferDownloadHD; import com.voxelmodpack.hdskins.ImageBufferDownloadHD;
@ -57,7 +56,7 @@ public class EntityPlayerModel extends EntityLivingBase {
protected boolean previewThinArms = false; protected boolean previewThinArms = false;
public EntityPlayerModel(GameProfile profile) { public EntityPlayerModel(GameProfile profile) {
super(new DWorld()); super(new DummyWorld());
this.profile = profile; this.profile = profile;
this.textureManager = Minecraft.getMinecraft().getTextureManager(); this.textureManager = Minecraft.getMinecraft().getTextureManager();
this.remoteSkinResource = new ResourceLocation("skins/preview_" + this.profile.getName() + ".png"); this.remoteSkinResource = new ResourceLocation("skins/preview_" + this.profile.getName() + ".png");