Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-21 05:50:05 +01:00
20 Zeilen
972 B
Diff
20 Zeilen
972 B
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Aikar <aikar@aikar.co>
|
||
|
Date: Thu, 19 Jul 2018 01:05:00 -0400
|
||
|
Subject: [PATCH] Don't change the Entity Random seed for squids
|
||
|
|
||
|
|
||
|
diff --git a/src/main/java/net/minecraft/world/entity/animal/EntitySquid.java b/src/main/java/net/minecraft/world/entity/animal/EntitySquid.java
|
||
|
index 7ce5e2597b34d3a4d2a79d73c15e893c064fc88c..1f5f3e0d209426b97e32b82dd15176b800f85816 100644
|
||
|
--- a/src/main/java/net/minecraft/world/entity/animal/EntitySquid.java
|
||
|
+++ b/src/main/java/net/minecraft/world/entity/animal/EntitySquid.java
|
||
|
@@ -48,7 +48,7 @@ public class EntitySquid extends EntityWaterAnimal {
|
||
|
|
||
|
public EntitySquid(EntityTypes<? extends EntitySquid> entitytypes, World world) {
|
||
|
super(entitytypes, world);
|
||
|
- this.random.setSeed((long) this.getId());
|
||
|
+ //this.random.setSeed((long) this.getId()); // Paper
|
||
|
this.bu = 1.0F / (this.random.nextFloat() + 1.0F) * 0.2F;
|
||
|
}
|
||
|
|