This repository has been archived by the owner on May 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bunch of patches + hopper fix (#352)
* undo #74 * add SportPaper #207 Block#toLegacyData optimisation * add SportPaper #206 Remove the world before nullifying chunkLoader & chunkProvider * add SportPaper #204 dont divide d14 by 0 * add SportPaper #220 Use EnumMap in CraftPlayer#playEffect() * add SportPaper #218 Update entity head yaw on teleport * add SportPaper #130 fix CraftLivingEntity#damage not calling EntityDamageEvent * add Migot #36 Check for lava only once per tick * add optimize region cache - paper 1.13 backport * update readme * backport parts of light queue changes from 1.13 * Paper #178 Disable Vanilla Chunk GC in favor of Bukkits * Paper #176 Auto fix bad Y levels on player login * Paper #172 Incremental Auto Saving * Paper Chunk registration fixes & Fix infinite loop when saving chunks * Paper #163 MC-80966 - Always send chunk sections * Paper Fix hopper suck in patch bug * Update NachoSpigot-Server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java Co-authored-by: Elier <[email protected]> * Update NachoSpigot-Server/src/main/java/org/bukkit/craftbukkit/CraftServer.java Co-authored-by: Elier <[email protected]> * third time to add dictionary.java... * im very dump * forth time to fix that... shall have more sleep * Update NachoSpigot-Server/src/main/java/net/minecraft/server/Entity.java Co-authored-by: Elier <[email protected]> * Update NachoSpigot-Server/src/main/java/net/minecraft/server/Entity.java Co-authored-by: Elier <[email protected]> * Update NachoSpigot-Server/src/main/java/net/minecraft/server/RegionFileCache.java Co-authored-by: Elier <[email protected]> * revert kigpaper optimize damage source * get away because of revert * Update NachoSpigot-Server/src/main/java/net/minecraft/server/ChunkSection.java Co-authored-by: Elier <[email protected]> * Fix spaces Co-authored-by: Elier <[email protected]> * Fix spaces Co-authored-by: Elier <[email protected]> * Fix spaces Co-authored-by: Elier <[email protected]> * Update NachoSpigot-Server/src/main/java/net/minecraft/server/WorldServer.java Co-authored-by: Elier <[email protected]> * Update NachoSpigot-Server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java Co-authored-by: Elier <[email protected]> * Update NachoSpigot-Server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java Co-authored-by: Elier <[email protected]> * Update NachoSpigot-Server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java Co-authored-by: Elier <[email protected]> * Update NachoSpigot-Server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java Co-authored-by: Elier <[email protected]> * Update NachoSpigot-Server/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java Co-authored-by: Elier <[email protected]> * Update NachoSpigot-Server/src/main/java/net/minecraft/server/EntityPlayer.java Co-authored-by: Elier <[email protected]> * Update NachoSpigot-Server/src/main/java/net/minecraft/server/MinecraftServer.java Co-authored-by: Elier <[email protected]> * Update NachoSpigot-Server/src/main/java/net/minecraft/server/RegionFileCache.java Co-authored-by: Elier <[email protected]> * Update NachoSpigot-Server/src/main/java/net/minecraft/server/World.java Co-authored-by: Elier <[email protected]> * Update NachoSpigot-Server/src/main/java/net/minecraft/server/RegionFileCache.java Co-authored-by: Elier <[email protected]> Co-authored-by: Elier <[email protected]>
- Loading branch information
1 parent
db8d380
commit ec731d5
Showing
17 changed files
with
97 additions
and
73 deletions.
There are no files selected for viewing
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
24 changes: 24 additions & 0 deletions
24
NachoSpigot-Server/src/main/java/dev/cobblesword/nachospigot/commons/Dictionary.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package dev.cobblesword.nachospigot.commons; | ||
|
||
import net.minecraft.server.EnumParticle; | ||
import org.bukkit.Effect; | ||
|
||
import java.util.EnumMap; | ||
|
||
public class Dictionary { | ||
public static final EnumMap<Effect, EnumParticle> EFFECT_TO_PARTICLE = new EnumMap<>(Effect.class); | ||
|
||
static { | ||
String tmp; | ||
for (EnumParticle p : EnumParticle.values()) { | ||
tmp = p.b().replace("_", ""); | ||
for (Effect e : Effect.values()) { | ||
// This is pretty much the original code, but we only call it once / effect & matching particle | ||
if (e.getName() != null && e.getName().startsWith(tmp)) { | ||
EFFECT_TO_PARTICLE.put(e, p); | ||
break; | ||
} | ||
} | ||
} | ||
} | ||
} |
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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