Fixed really dumb copy bug breaking crafting

This commit is contained in:
Dylan K. Taylor
2017-07-22 12:04:52 +01:00
parent 6cacb368ce
commit f32e880542
2 changed files with 3 additions and 3 deletions

View File

@ -140,7 +140,7 @@ class PacketPool{
* @return DataPacket
*/
public static function getPacketById(int $pid) : DataPacket{
return static::$pool[$pid] ?? new UnknownPacket();
return isset(static::$pool[$pid]) ? clone static::$pool[$pid] : new UnknownPacket();
}
/**