From f0fc0edd21b9340ce48561a5fceee29e4e055dff Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 24 Aug 2012 09:49:00 +0000 Subject: cPickup doesn't use cPackets. Also, Lua API change, OnCollectItem -> OnCollectPickup; first param is cPlayer to match other callbacks. git-svn-id: http://mc-server.googlecode.com/svn/trunk@786 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cPlugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/cPlugin.cpp') diff --git a/source/cPlugin.cpp b/source/cPlugin.cpp index 2b3825d2a..4bdebc859 100644 --- a/source/cPlugin.cpp +++ b/source/cPlugin.cpp @@ -118,10 +118,10 @@ bool cPlugin::OnChunkGenerating(cWorld * a_World, int a_ChunkX, int a_ChunkZ, cL -bool cPlugin::OnCollectItem(cPickup * a_Pickup, cPlayer * a_Player) +bool cPlugin::OnCollectPickup(cPlayer * a_Player, cPickup * a_Pickup) { - UNUSED(a_Pickup); UNUSED(a_Player); + UNUSED(a_Pickup); return false; } -- cgit v1.2.3