Skip to content

Commit

Permalink
1.10 building
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay113355 committed Jul 15, 2016
1 parent 3150b74 commit 08bb04a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repositories {

apply plugin: 'net.minecraftforge.gradle.forge'

version = "1.9.4-2.0.0"
version = "1.10.2-2.0.0"
group= "com.mcf.davidee.nbtedit"
archivesBaseName = "NBTEdit"

Expand All @@ -30,7 +30,7 @@ targetCompatibility = 1.7
idea { module { inheritOutputDirs = true } }

minecraft {
version = "1.9.4-12.17.0.1976"
version = "1.10.2-12.18.1.2011"
runDir = "run"
mappings = "snapshot_20160518"
//makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/mcf/davidee/nbtedit/NBTEdit.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
public class NBTEdit {
public static final String MODID = "NBTEdit";
public static final String NAME = "In-game NBTEdit";
public static final String VERSION = "1.9.4-2.0.0";
public static final String VERSION = "1.10.2-2.0.0";

public static final NBTNodeSorter SORTER = new NBTNodeSorter();
public static final PacketHandler NETWORK = new PacketHandler();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import net.minecraft.network.play.server.SPacketSetExperience;
import net.minecraft.network.play.server.SPacketUpdateHealth;
import net.minecraft.util.text.TextFormatting;
import net.minecraft.world.WorldSettings;
import net.minecraft.world.GameType;
import net.minecraftforge.fml.common.network.simpleimpl.IMessage;
import net.minecraftforge.fml.common.network.simpleimpl.IMessageHandler;
import net.minecraftforge.fml.common.network.simpleimpl.MessageContext;
Expand Down Expand Up @@ -54,7 +54,7 @@ public void run() {
Entity entity = player.worldObj.getEntityByID(packet.entityID);
if (entity != null && NBTEdit.proxy.checkPermission(player)) {
try {
WorldSettings.GameType preGameType = player.interactionManager.getGameType();
GameType preGameType = player.interactionManager.getGameType();
entity.readFromNBT(packet.tag);
NBTEdit.log(Level.TRACE, player.getName() + " edited a tag -- Entity ID #" + packet.entityID);
NBTEdit.logTag(packet.tag);
Expand All @@ -63,7 +63,7 @@ public void run() {
// receive entity edit events and provide feedback/send packets as necessary.

player.sendContainerToPlayer(player.inventoryContainer);
WorldSettings.GameType type = player.interactionManager.getGameType();
GameType type = player.interactionManager.getGameType();
if (preGameType != type)
player.setGameType(type);
player.connection.sendPacket(new SPacketUpdateHealth(player.getHealth(), player.getFoodStats().getFoodLevel(), player.getFoodStats().getSaturationLevel()));
Expand Down

0 comments on commit 08bb04a

Please sign in to comment.