mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-12-28 03:17:53 +01:00
Set version to 3.8 for development of a MC 1.4.2 release.
This commit is contained in:
parent
f86a5d9620
commit
6262ec2551
4
pom.xml
4
pom.xml
@ -4,7 +4,7 @@
|
||||
|
||||
<!-- Informations -->
|
||||
<name>NoCheatPlus</name>
|
||||
<version>3.7.10-RC-MC1.3.2</version>
|
||||
<version>3.8.0</version>
|
||||
<description>Detect and fight the exploitation of various flaws/bugs in Minecraft.</description>
|
||||
<url>http://dev.bukkit.org/server-mods/nocheatplus</url>
|
||||
|
||||
@ -42,7 +42,7 @@
|
||||
<dependency>
|
||||
<groupId>org.bukkit</groupId>
|
||||
<artifactId>craftbukkit</artifactId>
|
||||
<version>1.3.2-R2.0</version>
|
||||
<version>1.4.2-R0.1-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
@ -6,6 +6,7 @@ import java.util.Map;
|
||||
import net.minecraft.server.IBlockAccess;
|
||||
import net.minecraft.server.Material;
|
||||
import net.minecraft.server.TileEntity;
|
||||
import net.minecraft.server.Vec3DPool;
|
||||
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.craftbukkit.CraftWorld;
|
||||
@ -158,14 +159,14 @@ public class BlockCache implements IBlockAccess{
|
||||
return access.s(arg0, arg1, arg2);
|
||||
}
|
||||
|
||||
// @Override
|
||||
// public Vec3DPool getVec3DPool() {
|
||||
// return access.getVec3DPool();
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public boolean isBlockFacePowered(int arg0, int arg1, int arg2, int arg3) {
|
||||
// return access.isBlockFacePowered(arg0, arg1, arg2, arg3);
|
||||
// }
|
||||
@Override
|
||||
public Vec3DPool getVec3DPool() {
|
||||
return access.getVec3DPool();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isBlockFacePowered(int arg0, int arg1, int arg2, int arg3) {
|
||||
return access.isBlockFacePowered(arg0, arg1, arg2, arg3);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -238,11 +238,11 @@ public class BlockProperties {
|
||||
//
|
||||
Material.CROPS,
|
||||
|
||||
// // 1.4
|
||||
// Material.COMMAND,
|
||||
// Material.FLOWER_POT,
|
||||
// Material.CARROT,
|
||||
// Material.POTATO,
|
||||
// 1.4
|
||||
Material.COMMAND,
|
||||
Material.FLOWER_POT,
|
||||
Material.CARROT,
|
||||
Material.POTATO,
|
||||
};
|
||||
|
||||
private static final PlayerLocation pLoc = new PlayerLocation();
|
||||
@ -494,14 +494,14 @@ public class BlockProperties {
|
||||
blocks[Material.ENDER_CHEST.getId()] = new BlockProps(woodPickaxe, 22.5f);
|
||||
blocks[Material.OBSIDIAN.getId()] = new BlockProps(diamondPickaxe, 50, secToMs(250, 250, 250, 250, 9.4, 250));
|
||||
|
||||
// // More 1.4 (not insta).
|
||||
// blocks[Material.BEACON.getId()] = new BlockProps(noTool, 25f, secToMs(4.45)); // TODO
|
||||
// blocks[Material.COBBLE_WALL.getId()] = brickType;
|
||||
// blockFlags[Material.COBBLE_WALL.getId()] |= F_HEIGHT150;
|
||||
// blocks[Material.WOOD_BUTTON.getId()] = leverType;
|
||||
// blocks[Material.SKULL.getId()] = new BlockProps(noTool, 8.5f, secToMs(1.45)); // TODO
|
||||
// blockFlags[Material.SKULL.getId()] |= F_GROUND;
|
||||
// blocks[Material.ANVIL.getId()] = new BlockProps(woodPickaxe, 5f); // TODO
|
||||
// More 1.4 (not insta).
|
||||
blocks[Material.BEACON.getId()] = new BlockProps(noTool, 25f, secToMs(4.45)); // TODO
|
||||
blocks[Material.COBBLE_WALL.getId()] = brickType;
|
||||
blockFlags[Material.COBBLE_WALL.getId()] |= F_HEIGHT150;
|
||||
blocks[Material.WOOD_BUTTON.getId()] = leverType;
|
||||
blocks[Material.SKULL.getId()] = new BlockProps(noTool, 8.5f, secToMs(1.45)); // TODO
|
||||
blockFlags[Material.SKULL.getId()] |= F_GROUND;
|
||||
blocks[Material.ANVIL.getId()] = new BlockProps(woodPickaxe, 5f); // TODO
|
||||
|
||||
// Indestructible.
|
||||
for (Material mat : new Material[]{
|
||||
@ -916,8 +916,8 @@ public class BlockProperties {
|
||||
final double fx = x - bx;
|
||||
final double fy = y - by;
|
||||
final double fz = z - bz;
|
||||
if (fx < block.minX || fx >= block.maxX || fy < block.minY || fy >= block.maxY || fz < block.minZ || fz >= block.maxZ) return true;
|
||||
// if (fx < block.v() || fx >= block.w() || fy < block.x() || fy >= block.y() || fz < block.z() || fz >= block.A()) return true;
|
||||
// if (fx < block.minX || fx >= block.maxX || fy < block.minY || fy >= block.maxY || fz < block.minZ || fz >= block.maxZ) return true;
|
||||
if (fx < block.v() || fx >= block.w() || fy < block.x() || fy >= block.y() || fz < block.z() || fz >= block.A()) return true;
|
||||
else{
|
||||
// Workarounds (might get generalized some time).
|
||||
if (isStairs(id)){
|
||||
@ -1076,13 +1076,13 @@ public class BlockProperties {
|
||||
// if ((blockFlags[id] & F_HEIGHT150) != 0) block.maxY = 1.5;
|
||||
if ((blockFlags[id] & F_HEIGHT150) != 0) bmaxY = 1.5;
|
||||
else if (isStairs(id)) bmaxY = 1.0;
|
||||
else bmaxY = block.maxY; // block.y(); // maxY
|
||||
if (minX > block.maxX + x || maxX < block.minX + x) return false;
|
||||
else if (minY > bmaxY + y || maxY < block.minY + y) return false;
|
||||
else if (minZ > block.maxZ + z || maxZ < block.minZ + z) return false;
|
||||
// if (minX > block.w() + x || maxX < block.v() + x) return false;
|
||||
// else if (minY > bmaxY + y || maxY < block.x() + y) return false;
|
||||
// else if (minZ > block.A() + z || maxZ < block.z() + z) return false;
|
||||
else bmaxY = block.y(); // maxY
|
||||
// if (minX > block.maxX + x || maxX < block.minX + x) return false;
|
||||
// else if (minY > block.maxY + y || maxY < block.minY + y) return false;
|
||||
// else if (minZ > block.maxZ + z || maxZ < block.minZ + z) return false;
|
||||
if (minX > block.w() + x || maxX < block.v() + x) return false;
|
||||
else if (minY > bmaxY + y || maxY < block.x() + y) return false;
|
||||
else if (minZ > block.A() + z || maxZ < block.z() + z) return false;
|
||||
|
||||
else return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user