Skip to content

Commit

Permalink
Backport for CB 1.8 pieced together by looking through the upgrade co…
Browse files Browse the repository at this point in the history
…mmits. There is no guarantee this will work. Requires at minimum ProtocolLib 3.5.0.
  • Loading branch information
ProgrammerDan committed Apr 22, 2016
1 parent 1e1456a commit 93363e8
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This is a tagged release version for CraftBukkit 1.8.3. No support is guaranteed.
This is a tagged release version for CraftBukkit 1.8. No support is guaranteed.

Copyright (C) 2011-2015 lishid. All rights reserved.

Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<groupId>com.lishid</groupId>
<artifactId>orebfuscator</artifactId>
<packaging>jar</packaging>
<version>3.0.6-R2</version>
<version>3.0.6-R1</version>
<name>Orebfuscator</name>
<description>This release is appropriate for CraftBukkit 1.8.3</description>
<description>This release is appropriate for CraftBukkit 1.8</description>
<url>http://dev.bukkit.org/server-mods/orebfuscator/</url>

<properties>
Expand Down Expand Up @@ -35,7 +35,7 @@
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>craftbukkit</artifactId>
<version>1.8.3-R0.1-SNAPSHOT</version>
<version>1.8-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import com.lishid.orebfuscator.hithack.BlockHitManager;
import com.lishid.orebfuscator.internal.Packet51;
import com.lishid.orebfuscator.obfuscation.Calculations;
import net.minecraft.server.v1_8_R2.PacketPlayInBlockDig.EnumPlayerDigType;
import net.minecraft.server.v1_8_R1.EnumPlayerDigType;
import org.bukkit.plugin.Plugin;

public class ProtocolLibHook {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import com.lishid.orebfuscator.OrebfuscatorConfig;

//Volatile
import net.minecraft.server.v1_8_R2.*;
import net.minecraft.server.v1_8_R1.*;

public class ChunkCache {
private static final HashMap<File, RegionFile> cachedRegionFiles = new HashMap<File, RegionFile>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.lishid.orebfuscator.internal;

import net.minecraft.server.v1_8_R2.PacketPlayOutMapChunk.ChunkMap;
import net.minecraft.server.v1_8_R1.ChunkMap;

public class ChunkData {
public int x;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import com.lishid.orebfuscator.obfuscation.MinecraftBlock;
import com.lishid.orebfuscator.obfuscation.ProximityHider;
import io.netty.channel.Channel;
import net.minecraft.server.v1_8_R2.*;
import org.bukkit.craftbukkit.v1_8_R2.entity.CraftPlayer;
import net.minecraft.server.v1_8_R1.*;
import org.bukkit.craftbukkit.v1_8_R1.entity.CraftPlayer;

import java.util.*;
import java.util.concurrent.atomic.AtomicBoolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@

import com.lishid.orebfuscator.Orebfuscator;
import com.lishid.orebfuscator.utils.ReflectionHelper;
import net.minecraft.server.v1_8_R2.*;
import org.bukkit.craftbukkit.v1_8_R2.CraftWorld;
import org.bukkit.craftbukkit.v1_8_R2.entity.CraftPlayer;
import net.minecraft.server.v1_8_R1.*;
import org.bukkit.craftbukkit.v1_8_R1.CraftWorld;
import org.bukkit.craftbukkit.v1_8_R1.entity.CraftPlayer;
import org.bukkit.entity.Player;

//Volatile

public class MinecraftInternals {
public static boolean isBlockTransparent(int id) {
return Block.getById(id).u();
return Block.getById(id).s();
}

public static void updateBlockTileEntity(org.bukkit.block.Block block, Player player) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/lishid/orebfuscator/internal/NBT.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.lishid.orebfuscator.internal;

import net.minecraft.server.v1_8_R2.NBTCompressedStreamTools;
import net.minecraft.server.v1_8_R2.NBTTagCompound;
import net.minecraft.server.v1_8_R1.NBTCompressedStreamTools;
import net.minecraft.server.v1_8_R1.NBTTagCompound;

import java.io.DataInput;
import java.io.DataInputStream;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/lishid/orebfuscator/internal/Packet51.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
package com.lishid.orebfuscator.internal;

import com.lishid.orebfuscator.utils.ReflectionHelper;
import net.minecraft.server.v1_8_R2.PacketPlayOutMapChunk;
import net.minecraft.server.v1_8_R2.PacketPlayOutMapChunk.ChunkMap;
import net.minecraft.server.v1_8_R1.PacketPlayOutMapChunk;
import net.minecraft.server.v1_8_R1.ChunkMap;

public class Packet51 {
private static Class<PacketPlayOutMapChunk> packetClass = PacketPlayOutMapChunk.class;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/lishid/orebfuscator/internal/Packet56.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
package com.lishid.orebfuscator.internal;

import com.lishid.orebfuscator.utils.ReflectionHelper;
import net.minecraft.server.v1_8_R2.PacketPlayOutMapChunk.ChunkMap;
import net.minecraft.server.v1_8_R2.PacketPlayOutMapChunkBulk;
import net.minecraft.server.v1_8_R1.ChunkMap;
import net.minecraft.server.v1_8_R1.PacketPlayOutMapChunkBulk;

//Volatile

Expand Down
10 changes: 5 additions & 5 deletions src/main/java/com/lishid/orebfuscator/internal/PlayerHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
import com.lishid.orebfuscator.obfuscation.Calculations;
import com.lishid.orebfuscator.utils.ReflectionHelper;
import io.netty.channel.*;
import net.minecraft.server.v1_8_R2.PacketPlayInBlockDig.EnumPlayerDigType;
import net.minecraft.server.v1_8_R2.NetworkManager;
import net.minecraft.server.v1_8_R2.PacketPlayInBlockDig;
import net.minecraft.server.v1_8_R2.PacketPlayOutMapChunk;
import org.bukkit.craftbukkit.v1_8_R2.entity.CraftPlayer;
import net.minecraft.server.v1_8_R1.EnumPlayerDigType;
import net.minecraft.server.v1_8_R1.NetworkManager;
import net.minecraft.server.v1_8_R1.PacketPlayInBlockDig;
import net.minecraft.server.v1_8_R1.PacketPlayOutMapChunk;
import org.bukkit.craftbukkit.v1_8_R1.entity.CraftPlayer;
import org.bukkit.entity.Player;

import java.lang.reflect.Field;
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Orebfuscator3
main: com.lishid.orebfuscator.Orebfuscator
version: 3.0.6-R2
version: 3.0.6-R1
author: lishid
softdepend: [ProtocolLib]
load: startup
description: >
The most powerful and efficient Anti Xray for CraftBukkit 1.8.3
The most powerful and efficient Anti Xray for CraftBukkit 1.8
commands:
ofc:
description: Manage Orebfuscator.
Expand Down

0 comments on commit 93363e8

Please sign in to comment.