This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/main/java/net/minecraft/server/Chunk.java b/src/main/java/net/minecraft/server/Chunk.java | |
index 33f5aa721f..ca5cd62866 100644 | |
--- a/src/main/java/net/minecraft/server/Chunk.java | |
+++ b/src/main/java/net/minecraft/server/Chunk.java | |
@@ -521,6 +521,26 @@ public class Chunk implements IChunkAccess { | |
return this.a(blockposition, iblockdata, flag, true); | |
} | |
+ // Paper start | |
+ public void setTypeDirect(BlockPosition blockposition, IBlockData iblockdata) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2018. Starlis LLC / dba Empire Minecraft | |
* | |
* This source code is proprietary software and must not be redistributed without Starlis LLC's approval | |
* | |
*/ | |
package com.empireminecraft.items.boss; | |
import com.empireminecraft.features.items.CustomLingeringSplashPotionItem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2016. Starlis LLC / dba Empire Minecraft | |
* | |
* This source code is proprietary software and must not be redistributed without Starlis LLC's approval | |
* | |
*/ | |
package com.empireminecraft.util; | |
import com.empireminecraft.EmpirePlugin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private boolean flee() { | |
if (runAway == null || runAway.distance(entity.getLocation()) < 5) { | |
runAway = Util.getValidRandLocMinDist(8, entity.getLocation(), 14, 5, true); | |
} | |
if (runAway != null) { | |
entity.setTarget(null); | |
fleeing = false; | |
boolean result = API.entity.setEntityDestination(entity, runAway, 1.15); | |
fleeing = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.destroystokyo.paper.entity; | |
import org.bukkit.Location; | |
import org.bukkit.entity.LivingEntity; | |
import org.bukkit.entity.Mob; | |
import javax.annotation.Nonnull; | |
import javax.annotation.Nullable; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.destroystokyo.paper.entity; | |
import org.bukkit.Location; | |
import org.bukkit.entity.LivingEntity; | |
import org.bukkit.entity.Mob; | |
import java.util.List; | |
public interface Pathfinder <T extends Mob> { | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.minecraft.server; | |
import org.bukkit.event.entity.CreatureSpawnEvent; | |
import javax.annotation.Nullable; | |
import java.util.Random; | |
import java.util.Set; | |
import java.util.function.Function; | |
import java.util.function.Predicate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/main/java/net/minecraft/server/ChunkMap.java b/src/main/java/net/minecraft/server/ChunkMap.java | |
index 48cdc97377..d8b26d6129 100644 | |
--- a/src/main/java/net/minecraft/server/ChunkMap.java | |
+++ b/src/main/java/net/minecraft/server/ChunkMap.java | |
@@ -50,7 +50,7 @@ public class ChunkMap extends Long2ObjectOpenHashMap<Chunk> { | |
} | |
chunk.world.timings.syncChunkLoadPostTimer.stopTiming(); // Paper | |
- ((ChunkProviderServer) chunk.world.getChunkProvider()).asyncTaskHandler.postToMainThread(() -> {// Paper | |
+ //((ChunkProviderServer) chunk.world.getChunkProvider()).asyncTaskHandler.postToMainThread(() -> {// Paper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 1f5f375c2f1603c11ed9448994acd5175cfe3fcb Mon Sep 17 00:00:00 2001 | |
From: stonar96 <[email protected]> | |
Date: Mon, 20 Aug 2018 03:03:58 +0200 | |
Subject: [PATCH] Anti-Xray | |
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java | |
index 19f4c61cdc..3acb1ff9fd 100644 | |
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java | |
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
( | |
set -e | |
PS1="$" | |
basedir="$(cd "$1" && pwd -P)" | |
workdir="$basedir/work" | |
minecraftversion=$(cat "$workdir/BuildData/info.json" | grep minecraftVersion | cut -d '"' -f 4) | |
windows="$([[ "$OSTYPE" == "cygwin" || "$OSTYPE" == "msys" ]] && echo "true" || echo "false")" | |
spigotdecompiledir="$workdir/Minecraft/$minecraftversion-spigot" |